source: buchla-68k/orig/DOC/TC.TXT@ 6888aa2

Last change on this file since 6888aa2 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Imported original source code.

  • Property mode set to 100755
File size: 2.6 KB
Line 
1TC(3WI) UNIX 5.0 TC(3WI)
2
3 NAME
4 tiny curses - screen functions without ``optimal'' cursor
5 motion
6
7 SYNOPSIS
8 cc [flags] files tc.o -ltermlib [libraries]
9
10 DESCRIPTION
11 These routines give the programmer the high level curses(3)
12 interface to the termcap(3) functions without the overhead
13 of the curses(3) screen optimization capabilities. Tiny
14 curses is useful for simple screen formatting and is more
15 efficient for displays that do not require significant
16 redrawing.
17
18 To use the routines, the function initscr() should be called
19 before any others. The routine endwin() should be called
20 before exiting.
21
22 The names of the functions are identical to those of
23 curses(3) so that it is easy to move from Tiny curses to
24 real curses(3). There are many functions provided by
25 curses(3) that are not provided here (e.g., windows), so the
26 opposite translation is more difficult.
27
28 AUTHOR
29 Gary Perlman
30
31 SEE ALSO
32 curses(3), termcap(3), termcap(5)
33
34 FILES
35 #include "curses.h"definitions of variables and compatibility functions
36 /etc/termcap terminal capability database
37
38 VARIABLES
39 int LINES;/* number of lines in display */
40 int COLS; /* number of columns in display */
41
42 FUNCTIONS
43 Basic
44 endwin () reset tty to old parameters
45 initscr ()initialize screen
46 move (y, x)move to line=y column=x (zero origin)
47 refresh ()flush output to screen (fflush(stdout))
48
49 Clear Regions
50 clear () clear screen
51 clrtobot ()clear to bottom of screen
52 clrtoeol ()clear to end of line
53
54 Terminal Functions
55 crmode () cbreak mode
56 echo () echo characters
57 nocrmode ()out of cbreak mode
58 noecho () don't echo characters
59 noraw () no raw mode
60 raw () raw mode
61 resetty ()reset tty to stored state
62 savetty ()save tty state
63
64 Highlighting
65 beep () visible or at least audible bell
66 standend ()don't highlight text
67 standout ()highlight text
68 underend ()end underscore mode
69 underscore ()underscore characters
70
71 Editing Functions
72 delch () delete the character under the cursor
73 deleteln ()delete the current line
74 insch (c) insert character
75 insertln ()insert line
76
77 DIAGNOSTICS
78 To be compatible with curses(3), there are no diagnostics.
79
80 NOTES
81 The refresh() function is actually a call to fflush(stdout)
82 to flush the output buffer. Thus, the tiny curses refresh()
83 may be used to guarantee that some text is on the screen,
84 but it might go out sooner.
85
86 Tiny curses assumes you want to catch interrupts, so
87 initscr() sets things up so that an interrupt will reset the
88 tty, move to the bottom of the screen, and exit.
Note: See TracBrowser for help on using the repository browser.