06-01-2005
You can set these key sequences using
stty. Here is
a link to the stty man page. Just add it to the end of your .profile, then be sure to source your .profile once you have saved the file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. AIX
I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies
3. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
My CTRL/C does not work thought the STTY setting looks Ok
Appreciate your assistance
$stty -a
speed 38400 baud;
rows = 24; columns = 80; ypixels = 0; xpixels = 0;
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>;... (10 Replies)
Discussion started by: zam
10 Replies
5. UNIX for Dummies Questions & Answers
I'm going through "learning the bash shell" by newham and rosenblatt. I'm trying to ctro-O to execute and then go on to the next command in the history list, ctrl-o again, etc. (I'm just trying to get a feel for it in case I want to use it). But ctrl-o does nothing. Can someone help me out as to... (5 Replies)
Discussion started by: Straitsfan
5 Replies
6. UNIX for Dummies Questions & Answers
When running MC in xterm or gnome-terminal, it doesn't seem to allow the use of Ctrl-enter and Ctr-shift-enter to copy marked files to the command line.
Does anyone know of another way to cause this to happen or a way to enable it under xterm/gnome-term?
With thanks,
Narnie (0 Replies)
Discussion started by: Narnie
0 Replies
7. Solaris
gcc packages are installed as is seen.
# pkginfo | grep -i gcc
system SUNWgcc gcc - The GNU C compiler
system SUNWgccruntime GCC Runtime libraries
#
There is gcc in /usr/sfw/bin but It doesn't work.
# gcc
bash: gcc: command not found... (7 Replies)
Discussion started by: getrue
7 Replies
8. UNIX for Dummies Questions & Answers
Hi friends,
I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script.
#! /bin/sh
echo "select * from tab; commit;" > data.sql
I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Discussion started by: royalibrahim
1 Replies
9. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
10. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT DEBIAN
hexcurse
HEXCURSE(1) General Commands Manual HEXCURSE(1)
NAME
hexcurse - an ncurses-based hex editor
SYNOPSIS
hexcurse [ -? | -help ] [ -a ] [ -r rnum ] [ -o outputfile ] [ [ -i ] inputfile ]
DESCRIPTION
hexcurse is an ncurses-based hexeditor utility that is able to open, modify, and save a file to disk while providing useful editing and
searching options.
OPTIONS
-? | -help Prints out the command usage info
-a Specifies the addresses to be output in decimal format initially.
-r rnum Specifies the number of characters per line that the hexeditor should output. If rnum is either less than 1 or greater than
the columns of the current terminal, hexcurse will fill the terminal width, just as if the -r was not specified.
-o outputfile Specifies the output file to be written to by default.
[-i] inputfile Specifies the input file to be read in. -i is not needed if inputfile is the last argument on the line.
INTERACTIVE OPTIONS
F1 | ctrl+? Shows key command help.
F2 | ctrl+s Save the current file.
F3 | ctrl+o Opens a file.
F4 | ctrl+g Goto a certain location in the current file. Depending on which way the addresses are being viewed at the moment, the
search will behave differently. If the addresses are currently in hex format, the search will search as if the input was
given in hexadecimal format. If the addresses are in decimal format, the function will search for the address in decimal.
F5 | ctrl+f Search for a certain string in the current file. Depending on which window the user is currently editing in, this search
will behave differently. If editing in the hex window, the input should only be in hexadecimal, and it will search for the
hexadecimal "string." If the current editing window is the ASCII window, the input should be ASCII characters, and the
search will find that ASCII string in the file.
F6 | ctrl+a Switch between hexadecimal address values and decimal address values.
F7 | TAB Switch between the hexadecimal and ASCII editing windows.
F8 | ctrl+q | ctrl+x
Exit out of the program.
Page Up | ctrl+u
Scroll one 'page' up.
Page Down | ctrl+d
Scroll one 'page' down.
Home | ctrl+t Returns to the top of the file.
End | ctrl+b Jumps to the bottom of the file.
ctrl+z Undo the last modification. Can be used multiple times.
Esc Escapes out of the save, open, goto, and find prompts.
SEE ALSO
hexdump(1) , ncurses(3)
AUTHORS
The authors of hexcurse are:
jewfish <jewfish@jewfish.net>
armoth <uknowho@jewfish.net>
The current version of this software is always availabe at
http://www.jewfish.net/software.php
BUGS
On some terminals the function keys will not work.
Support for resizable terminals is still a bit rudimentary. At this time, when the terminal is resized, the cursor is positioned at the
beginning of the file. This will be corrected in the next release. There is also an issue where the labels on the bottom of the screen do
not resize correctly. A fix for the latter is in the works.
To report a bug or problem, please e-mail:
devel@jewfish.net
TODO
When we get the time, we would like to implement the ability to insert and delete data from the file. Please e-mail us with any additional
suggestions.
22 December 2003 HEXCURSE(1)