| ... | ... |
@@ -119,6 +119,14 @@ void tty_setnormal(tty_t *tty) {
|
| 119 | 119 |
tty->fgcolor = 9; |
| 120 | 120 |
} |
| 121 | 121 |
|
| 122 |
+void tty_setnowrap(tty_t *tty) {
|
|
| 123 |
+ tty_printf(tty, "%c%c?7l", 0x1b, '['); |
|
| 124 |
+} |
|
| 125 |
+ |
|
| 126 |
+void tty_setwrap(tty_t *tty) {
|
|
| 127 |
+ tty_printf(tty, "%c%c?7h", 0x1b, '['); |
|
| 128 |
+} |
|
| 129 |
+ |
|
| 122 | 130 |
void tty_newline(tty_t *tty) {
|
| 123 | 131 |
tty_printf(tty, "%c%cK\n", 0x1b, '['); |
| 124 | 132 |
} |
| ... | ... |
@@ -23,6 +23,8 @@ void tty_setfg(tty_t *tty, int fg); |
| 23 | 23 |
void tty_setinvert(tty_t *tty); |
| 24 | 24 |
void tty_setunderline(tty_t *tty); |
| 25 | 25 |
void tty_setnormal(tty_t *tty); |
| 26 |
+void tty_setnowrap(tty_t *tty); |
|
| 27 |
+void tty_setwrap(tty_t *tty); |
|
| 26 | 28 |
|
| 27 | 29 |
#define TTY_COLOR_BLACK 0 |
| 28 | 30 |
#define TTY_COLOR_RED 1 |