diff options
author | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
---|---|---|
committer | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
commit | 094ca96844842928810f14844413109fc6cdd890 (patch) | |
tree | e60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /pico/osdep/terminal.h | |
download | alpine-094ca96844842928810f14844413109fc6cdd890.tar.xz |
Initial Alpine Version
Diffstat (limited to 'pico/osdep/terminal.h')
-rw-r--r-- | pico/osdep/terminal.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pico/osdep/terminal.h b/pico/osdep/terminal.h new file mode 100644 index 00000000..6449c32c --- /dev/null +++ b/pico/osdep/terminal.h @@ -0,0 +1,50 @@ +/* + * $Id: terminal.h 767 2007-10-24 00:03:59Z hubert@u.washington.edu $ + * + * ======================================================================== + * Copyright 2006 University of Washington + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * ======================================================================== + */ + + +#ifndef PICO_OSDEP_TERMINAL_INCLUDED +#define PICO_OSDEP_TERMINAL_INCLUDED + + +/* + * Useful definitions + */ +#define NROW DEFAULT_LINES_ON_TERMINAL +#define NCOL DEFAULT_COLUMNS_ON_TERMINAL + +#define TT_OPTIMIZE 0x01 /* optimize flag(cf line speed) */ +#define TT_EOLEXIST 0x02 /* does clear to EOL exist */ +#define TT_SCROLLEXIST 0x04 /* does insert line exist */ +#define TT_REVEXIST 0x08 /* does reverse video exist? */ +#define TT_INSCHAR 0x10 /* does insert character exist */ +#define TT_DELCHAR 0x20 /* does delete character exist */ + + +#define TERM_OPTIMIZE (tthascap() & TT_OPTIMIZE) +#define TERM_EOLEXIST (tthascap() & TT_EOLEXIST) +#define TERM_SCROLLEXIST (tthascap() & TT_SCROLLEXIST) +#define TERM_REVEXIST (tthascap() & TT_REVEXIST) +#define TERM_INSCHAR (tthascap() & TT_INSCHAR) +#define TERM_DELCHAR (tthascap() & TT_DELCHAR) + + +/* exported prototypes */ +unsigned tthascap(void); +#if HAS_TERMINFO || HAS_TERMCAP +void putpad(char *); +#endif + + +#endif /* PICO_OSDEP_TERMINAL_INCLUDED */ |