| 17 |
|
|
| 18 |
#include "bbs.h" |
#include "bbs.h" |
| 19 |
#include "common.h" |
#include "common.h" |
| 20 |
|
#include "log.h" |
| 21 |
#include "io.h" |
#include "io.h" |
| 22 |
|
#include "screen.h" |
| 23 |
|
#include <string.h> |
| 24 |
|
#include <ctype.h> |
| 25 |
#include <sys/types.h> |
#include <sys/types.h> |
| 26 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 27 |
#include <unistd.h> |
#include <unistd.h> |
| 64 |
|
|
| 65 |
void clrtobot(int line_begin) |
void clrtobot(int line_begin) |
| 66 |
{ |
{ |
| 67 |
clrline(line_begin, screen_lines); |
//clrline(line_begin, screen_lines); |
| 68 |
moveto(line_begin, 0); |
moveto(line_begin, 0); |
| 69 |
|
prints("\033[J"); |
| 70 |
|
|
| 71 |
|
moveto(line_begin, 0); |
| 72 |
|
|
| 73 |
|
iflush(); |
| 74 |
} |
} |
| 75 |
|
|
| 76 |
void clearscr() |
void clearscr() |
| 77 |
{ |
{ |
| 78 |
prints("\33[2J"); |
prints("\033[2J"); |
| 79 |
moveto(0, 0); |
moveto(0, 0); |
| 80 |
iflush(); |
iflush(); |
| 81 |
} |
} |
| 108 |
} |
} |
| 109 |
} |
} |
| 110 |
|
|
| 111 |
int _str_input(char *buffer, int buffer_length, int echo_mode) |
static int _str_input(char *buffer, int buffer_length, int echo_mode) |
| 112 |
{ |
{ |
| 113 |
char buf[256], ch; |
char buf[256], ch; |
| 114 |
int c, offset = 0, len, loop = 1, i, hz = 0; |
int c, offset = 0, len, loop = 1, i, hz = 0; |