Fossil SCM
Remove the test-terminal-size command as now we have "sys stty size"
Commit
33b17c8b6710efd124c9170fd9a09ba04c458a761f52f351fb8ecd83e746229c
Parent
4dd0affa175ee69…
1 file changed
-14
-14
| --- src/terminal.c | ||
| +++ src/terminal.c | ||
| @@ -125,24 +125,10 @@ | ||
| 125 | 125 | return ts.nLines; |
| 126 | 126 | } |
| 127 | 127 | return nDefault; |
| 128 | 128 | } |
| 129 | 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 | 130 | /* |
| 145 | 131 | ** Return true if it is reasonable is emit VT100 escape codes. |
| 146 | 132 | */ |
| 147 | 133 | int terminal_is_vt100(void){ |
| 148 | 134 | char *zNoColor; |
| 149 | 135 |
| --- 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 |