summaryrefslogtreecommitdiffstats
path: root/mbbsd/term.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-21 17:26:02 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-21 17:26:02 +0800
commite9a7b75babb76e1a3341161bcb6e80f3753b83c7 (patch)
tree04debdc816cd5405bba70904a1eea16ca6fca663 /mbbsd/term.c
parent1428a82d1644166fdaa5285c67f236ac02687818 (diff)
downloadpttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.gz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.bz2
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.lz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.xz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.zst
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.zip
indent -i4
fix indent's word error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/term.c')
-rw-r--r--mbbsd/term.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mbbsd/term.c b/mbbsd/term.c
index aa310212..ced6b1c4 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.4 2002/07/05 17:10:28 in2 Exp $ */
+/* $Id: term.c,v 1.5 2002/07/21 09:26:02 in2 Exp $ */
#include "bbs.h"
int tgetent(const char *bp, char *name);
@@ -14,7 +14,7 @@ static struct termios tty_state, tty_new;
/* ----------------------------------------------------- */
/* basic tty control */
/* ----------------------------------------------------- */
-void
+void
init_tty()
{
if (tcgetattr(1, &tty_state) < 0) {
@@ -41,7 +41,7 @@ init_tty()
static char *outp;
static int *outlp;
-static int
+static int
outcf(int ch)
{
if (*outlp < TERMCOMSIZE) {
@@ -52,7 +52,7 @@ outcf(int ch)
}
#endif
-static void
+static void
term_resize(int sig)
{
struct winsize newsize;
@@ -77,7 +77,7 @@ term_resize(int sig)
signal(SIGWINCH, term_resize);
}
-int
+int
term_init()
{
signal(SIGWINCH, term_resize);
@@ -86,7 +86,7 @@ term_init()
char term_buf[32];
-void
+void
do_move(int destcol, int destline)
{
char buf[16], *p;
@@ -96,21 +96,21 @@ do_move(int destcol, int destline)
ochar(*p);
}
-void
+void
save_cursor()
{
ochar('\33');
ochar('7');
}
-void
+void
restore_cursor()
{
ochar('\33');
ochar('8');
}
-void
+void
change_scroll_range(int top, int bottom)
{
char buf[16], *p;
@@ -120,7 +120,7 @@ change_scroll_range(int top, int bottom)
ochar(*p);
}
-void
+void
scroll_forward()
{
ochar('\33');