01-02-2014
Any good with terminal emulation, inputrc, termcap/terminfo, tset, en_us-UTF-8 vs en_us-Latin-1?
My issue still exists, and yes, it does matter, as this dev box will be our prod box, and 400 users will complain if they see any funny chars...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm completely new to Unix, but familiar with Mac OSX. I've just discovered the command line terminal feature of this new OS and I'm trying to learn how to telnet into my host's server to change permissions to allow executable cgi scripts for my website. Is there anyone who might be able to... (2 Replies)
Discussion started by: tylerl
2 Replies
2. Shell Programming and Scripting
I am using following code to read myfile.ddl line by line. But the thing is it is printing lot of garbage which are the names of the files and directories in which myfile.ddl is present. Kindly refine the code so that only myfile.ddl contents are only read
LOGFILE="logfile.txt"... (4 Replies)
Discussion started by: skyineyes
4 Replies
3. Shell Programming and Scripting
Hi guys, hopefully this hasn't been asked before - couldn't see the question anywhere.
I have a large number of timestamps (hh-mm-ss-millisecond)
that I need to find the difference between e.g.:
14-11-07-513
14-11-07-644
Now the script that I have just knocked up is horrifically slow,... (4 Replies)
Discussion started by: dlam
4 Replies
4. OS X (Apple)
Hi all,
we are just confused about a strange problem on one server in production (XServer, running OSXS 10.5.6). It works normal for month. Since two day everthing seems to be fine also with one exception.
When we connect trough ssh we won't get a tty session. For testing purposes, we enabled... (2 Replies)
Discussion started by: Frank.Knobloch
2 Replies
5. UNIX for Dummies Questions & Answers
Hello
Yes I'm a noob so thanks for your help.
I have a unix exicutable that renders video under os x (unix). As it renders frames it echos (or outputs) information to the terminal about which frame it's up too an how long it took etc. I am looking for a way to pipe this information so I can... (4 Replies)
Discussion started by: mortocks
4 Replies
6. UNIX for Dummies Questions & Answers
HI , I am little confused about differences between Telnet and Terminal Emulation? (1 Reply)
Discussion started by: nixhead
1 Replies
7. Shell Programming and Scripting
I write a program to find a palindromic region in given sequences. but it dosen't seems to be run well. please give me your suggestions
INPUT: AGCTAGCTCGAAGGTAG
code is
here
#!/usr/bin/perl
#Palindromic sequence
print "enter the sequence:\n";
$rna = <STDIN>;
chomp $rna; ... (3 Replies)
Discussion started by: sujit_singh
3 Replies
8. Shell Programming and Scripting
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
Discussion started by: necro98
2 Replies
9. UNIX for Beginners Questions & Answers
I need to write a python script that will
look at the local gc logs.
6 sys=0.00, real=0.06 secs]
2019-06-05T07:43:12.029-0500: 1072696.494: 2791209K->1995953K(2796544K)] 2803355K->1995953K(4164608K), , 3.0299555 secs]
2019-06-05T07:43:17.149-0500: 1072701.614: 3334321K->2008193K(4167680K),... (1 Reply)
Discussion started by: xgringo
1 Replies
termcap(3X) termcap(3X)
NAME
termcap: tgetent(), tgetflag(), tgetnum(), tgetstr(), tgoto(), tputs() - emulate /usr/share/lib/termcap access routines
SYNOPSIS
DESCRIPTION
These functions extract and use capabilities from the compiled terminal capability data bases (see terminfo(4)). They are emulation rou-
tines.
Extracts the compiled entry for terminal
name into buffers accessible by the programmer. Unlike previous termcap routines, all capability strings (except
cursor addressing and padding information) are already compiled and stored internally upon return from The buffer
pointer bp is redundant in the emulation, and is ignored. It should not be relied upon to point to meaningful infor-
mation. returns -1 if it cannot access the terminfo directory or if there is no capability file for name, and 0 if
all goes well. If a environment variable is set, first looks for (where is the first character of name), and if that
file is not accessible, it looks for
Gets the numeric value of capability
id, returning -1 if it is not given for the terminal. is useful only with capabilities having numeric values.
Returns 1 if the specified capability is present in
the terminal's entry, and 0 if it is not. is useful only with capabilities that are boolean in nature (i.e. either
present or missing in terminfo(4)).
Returns a pointer to the string value of capability
id. In addition, if area is not a NULL pointer, places the capability in the buffer at area and advances the area
pointer. The returned string capability is compiled except for cursor addressing and padding information. is useful
only with capabilities having string values.
Returns a cursor addressing string decoded from
cm to go to column destcol in line destline. (Programs that call should be sure to turn off the TAB3 bit or bits,
since can now output a tab. See termio(7)). Note that programs using should in general turn off TAB3 anyway since
some terminals use Ctrl-I for other functions, such as nondestructive space.) If a sequence is given that is not
understood, returns [OOPS].
Decodes the padding information of the string
cp. affcnt gives the number of lines affected by the operation, or 1 if this is not applicable. outc is a routine
that is called with each character in turn. The variable pad_char should contain a pad character to be used (from
the pc capability) if a null is inappropriate.
WARNINGS
These routines are not meant to be used by programs running in the background.
Obsolescent Interfaces
and are to be obsoleted at a future date.
FILES
library
data bases
SEE ALSO
ex(1), terminfo(4), termio(7).
TO BE OBSOLETED termcap(3X)