termcap

Unable to turn off automatic margins by termcap in Mac

I need to turn automatic margins off according the following statement from Screen's manual in my Mac If your terminal is a "true" auto-margin terminal (it doesn't allow the last position on the screen to be updated without scrolling the screen) consider using a version of your terminal's termcap that has ...

TUI using slang with pure ascii (7 bit) characters via termcap

I am using newt/snack (a TUI graphical Widgit library for Python based on slang) to have some interactive scripts. However for some target terminals the output of those screens are not very nice. I can change the look of them by changing the $TERM variable to remove non printable characters, and to convert them to something more suitable...

How do I determine if a terminal is color-capable?

I would like to change a program to automatically detect whether a terminal is color-capable or not, so when I run said program from within a non-color capable terminal (say M-x shell in (X)Emacs), color is automatically turned off. I don't want to hardcode the program to detect TERM={emacs,dumb}. I am thinking that termcap/terminfo sh...

Questions about display with Perform screens.

Questions 1 and 2 are specific to INFORMIX-SQL 4.10.DD6 (DOS) Perform screens. Question 3 applies to any version of INFORMIX-SQL in any environment. I would like to be able to display more than 80 columns on my perform screens to fit more stuff in one page. I tried DOS 6.22 command ‘MODE CON: CO132’ and on my perform screen I specified...

Testing for color support in Linux shell scripts

This is the second time I've wanted to do this and again my google-fu has failed me. When in the course of running a shell script (in my case a bash script) is there a program/script that tests whether the current shell supports color? Alternatively is there a way to take the terminal type and easily determine if it supports color? Ei...

Can I determine if the terminal interprets the C1 control codes?

ISO/IEC 2022 defines the C0 and C1 control codes. The C0 set are the familiar codes between 0x00 and 0x1f in ASCII, ISO-8859-1 and UTF-8 (eg. ESC, CR, LF). Some VT100 terminal emulators (eg. screen(1), PuTTY) support the C1 set, too. These are the values between 0x80 and 0x9f (so, for example, 0x84 moves the cursor down a line). I am...