You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add bottom_buffer_fraction config for prompt positioning
- adds bottom_buffer_fraction to prompt config (default 1.0, disabled)
- implements ensure_bottom_buffer() to scroll terminal when needed
- integrates into both R mainloop and standalone modes
- clamps values to 0.0, 1.0 range via builder pattern
- adds 4 tests for config parsing and defaults
- updates JSON schema and snapshots
fraction values: 0.0=pinned top, 0.5=upper half, 1.0=disabled (default)
Copy file name to clipboardExpand all lines: artifacts/arf.schema.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,7 @@
108
108
"prompt": {
109
109
"$ref": "#/$defs/PromptConfig",
110
110
"default": {
111
+
"bottom_buffer_fraction": 1.0,
111
112
"continuation": "+ ",
112
113
"format": "{status}R {version}> ",
113
114
"indicators": {
@@ -1705,6 +1706,12 @@
1705
1706
"description": "Prompt configuration.",
1706
1707
"type": "object",
1707
1708
"properties": {
1709
+
"bottom_buffer_fraction": {
1710
+
"description": "Fraction of terminal height to reserve as bottom buffer.\n\nThis keeps the prompt away from the bottom of the terminal by scrolling\nup when the cursor would go below this fraction of the terminal height.\n\n- 0.0: Prompt stays at top of terminal\n- 0.5: Prompt stays in upper half (reserve bottom 50%)\n- 1.0: No buffer, prompt at bottom (default, current behavior)\n\nValues outside [0.0, 1.0] are clamped to this range.",
1711
+
"type": "number",
1712
+
"format": "float",
1713
+
"default": 1.0
1714
+
},
1708
1715
"continuation": {
1709
1716
"description": "Continuation prompt for multiline input.",
Copy file name to clipboardExpand all lines: crates/arf-console/src/config/snapshots/arf__config__tests__schema_tests__config_schema.snap
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@ expression: schema
112
112
"prompt": {
113
113
"$ref": "#/$defs/PromptConfig",
114
114
"default": {
115
+
"bottom_buffer_fraction": 1.0,
115
116
"continuation": "+ ",
116
117
"format": "{status}R {version}> ",
117
118
"indicators": {
@@ -1709,6 +1710,12 @@ expression: schema
1709
1710
"description": "Prompt configuration.",
1710
1711
"type": "object",
1711
1712
"properties": {
1713
+
"bottom_buffer_fraction": {
1714
+
"description": "Fraction of terminal height to reserve as bottom buffer.\n\nThis keeps the prompt away from the bottom of the terminal by scrolling\nup when the cursor would go below this fraction of the terminal height.\n\n- 0.0: Prompt stays at top of terminal\n- 0.5: Prompt stays in upper half (reserve bottom 50%)\n- 1.0: No buffer, prompt at bottom (default, current behavior)\n\nValues outside [0.0, 1.0] are clamped to this range.",
1715
+
"type": "number",
1716
+
"format": "float",
1717
+
"default": 1.0
1718
+
},
1712
1719
"continuation": {
1713
1720
"description": "Continuation prompt for multiline input.",
0 commit comments