Fossil SCM

Remove the test-terminal-size command as now we have "sys stty size"

drh 2025-11-25 16:15 trunk
Commit 33b17c8b6710efd124c9170fd9a09ba04c458a761f52f351fb8ecd83e746229c
1 file changed -14
--- src/terminal.c
+++ src/terminal.c
@@ -125,24 +125,10 @@
125125
return ts.nLines;
126126
}
127127
return nDefault;
128128
}
129129
130
-/*
131
-** COMMAND: test-terminal-size
132
-**
133
-** Show the size of the terminal window from which the command is launched
134
-** as two integers, the width in characters and the height in lines.
135
-**
136
-** If the size cannot be determined, two zeros are shown.
137
-*/
138
-void test_terminal_size_cmd(void){
139
- TerminalSize ts;
140
- terminal_get_size(&ts);
141
- fossil_print("%d %d\n", ts.nColumns, ts.nLines);
142
-}
143
-
144130
/*
145131
** Return true if it is reasonable is emit VT100 escape codes.
146132
*/
147133
int terminal_is_vt100(void){
148134
char *zNoColor;
149135
--- src/terminal.c
+++ src/terminal.c
@@ -125,24 +125,10 @@
125 return ts.nLines;
126 }
127 return nDefault;
128 }
129
130 /*
131 ** COMMAND: test-terminal-size
132 **
133 ** Show the size of the terminal window from which the command is launched
134 ** as two integers, the width in characters and the height in lines.
135 **
136 ** If the size cannot be determined, two zeros are shown.
137 */
138 void test_terminal_size_cmd(void){
139 TerminalSize ts;
140 terminal_get_size(&ts);
141 fossil_print("%d %d\n", ts.nColumns, ts.nLines);
142 }
143
144 /*
145 ** Return true if it is reasonable is emit VT100 escape codes.
146 */
147 int terminal_is_vt100(void){
148 char *zNoColor;
149
--- src/terminal.c
+++ src/terminal.c
@@ -125,24 +125,10 @@
125 return ts.nLines;
126 }
127 return nDefault;
128 }
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130 /*
131 ** Return true if it is reasonable is emit VT100 escape codes.
132 */
133 int terminal_is_vt100(void){
134 char *zNoColor;
135

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button