03-08-2002
Well this was a new one on me. I didn't know that curses had this capability. But I've been looking over the documentation and I'll make a couple of guesses.
First, are you sure that your terminal can draw lines this way? Almost no one actually uses a true vt-100. Instead you may have a terminal that is emulating a vt-100 or you may be using a program like xterm that emulates a vt-100. xterm can only do what the font can do. My xterm cannot draw lines. But I'm not going to try any different fonts to see what I can do. So the first thing I would try is to write a non-curses program that sends the correct character string to the terminal and verify that it is possible.
If the terminal can really draw lines, the next thing to worry about is the terminfo entry. You may need to write a new one. I have seen several cases where complex curses stuff did not work because the OS came with a poor terminfo entry. I think that the manufacters simply ensure that the terminfo entry can run vi. They can't be testing it much beyond that from what I've seen.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need to delete all lines in a file which starts with "|" character. Can some one assist me?
Thanks (2 Replies)
Discussion started by: borncrazy
2 Replies
2. UNIX for Dummies Questions & Answers
I have a file in which I need to search if a new line character exists on the last line in the file. Please let me know how can I achieve it using Unix commands? (10 Replies)
Discussion started by: sunilbm78
10 Replies
3. Shell Programming and Scripting
Hi,
My awk program is failing. I figured out using command
od -c filename
that the last line of the file doesnt end with a new line character.
Mine is an automated process because of this data is missing.
How do i handle this?
I want to append new line character at the end of last... (2 Replies)
Discussion started by: pinnacle
2 Replies
4. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
5. Solaris
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies
6. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
7. Shell Programming and Scripting
Hi ,
I am doing some enhancements in an existing shell script. There it used the awk command in a function as below :
float_expr() {
IFS=" " command eval 'awk "
BEGIN {
result = $*
print result
exit(result == 0)
}"'
}
It calls the function float_expr to evaluate two values ,... (1 Reply)
Discussion started by: mady135
1 Replies
8. Shell Programming and Scripting
Hi there,
A total sed noob here. Is there a way using sed to delete everything before a character AND after another character on each line in a file? The deletion should also delete the indicating characters(here: an opening and a closing parenthesis).
The original file would look like... (3 Replies)
Discussion started by: bnbsd
3 Replies
9. Shell Programming and Scripting
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
10. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
toe(1M) toe(1M)
NAME
toe - table of (terminfo) entries
SYNOPSIS
toe [-v[n]] [-ahuUV] file...
DESCRIPTION
With no options, toe lists all available terminal types by primary name with descriptions. File arguments specify the directories to be
scanned; if no such arguments are given, your default terminfo directory is scanned. If you also specify the -h option, a directory header
will be issued as each directory is entered.
There are other options intended for use by terminfo file maintainers:
-a report on all of the terminal databases which ncurses would search, rather than only the first one that it finds.
-u file
says to write a report to the standard output, listing dependencies in the given terminfo/termcap source file. The report condenses
the `use' relation: each line consists of the primary name of a terminal that has use capabilities, followed by a colon, followed by
the whitespace-separated primary names of all terminals which occur in those use capabilities, followed by a newline
-U file
says to write a report to the standard output, listing reverse dependencies in the given terminfo/termcap source file. The report
reverses the `use' relation: each line consists of the primary name of a terminal that occurs in use capabilities, followed by a
colon, followed by the whitespace-separated primary names of all terminals which depend on it, followed by a newline.
-vn specifies that (verbose) output be written to standard error, showing toe's progress. The optional parameter n is a number from 1
to 10, interpreted as for tic(1M).
-V reports the version of ncurses which was used in this program, and exits.
FILES
/usr/share/terminfo/?/*
Compiled terminal description database.
SEE ALSO
tic(1M), infocmp(1M), captoinfo(1M), infotocap(1M), curses(3X), terminfo(5).
This describes ncurses version 5.7 (patch 20081102).
toe(1M)