backspace deletion hpux 11i


 
Thread Tools Search this Thread
Operating Systems HP-UX backspace deletion hpux 11i
# 1  
Old 12-20-2006
backspace deletion hpux 11i

how i can enable backspace or charector deletion in hpux11i shell prompt.
# 2  
Old 12-20-2006
Enter this at shell prompt
Code:
stty erase <hit the key for deletion>

# 3  
Old 12-20-2006
thanks andryk, it is working fine.
# 4  
Old 01-04-2007
remove email address

Quote:
Originally Posted by jestinabel
how i can enable backspace or charector deletion in hpux11i shell prompt.

If it is not working I think you can always use CTRL + H

Regards, Johan Louwers.

## -----------------------------------------------------------------------------
## Website: http://www.terminalcult.org
## Weblog : http://johanlouwers.blogspot.com
## E-mail : deleted
## -----------------------------------------------------------------------------

Last edited by blowtorch; 01-04-2007 at 07:34 PM.. Reason: remove email
# 5  
Old 01-04-2007
once you figure out what character is associated w/your backspace-key, set it in your .profile

hpuxUSER> grep stty .profile
stty erase "^?" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
# 6  
Old 01-24-2007
Quote:
Originally Posted by mr_manny
once you figure out what character is associated w/your backspace-key, set it in your .profile

hpuxUSER> grep stty .profile
stty erase "^?" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
Better make sure your TERM environment variable ends up with the proper value.

Sadly too many /etc/profile scripts set the TERM variable to some kind of default.

if you use the stty commands in your .profile it is proper to make sure ^U, ^C and ^D are single characters and not 2 characters.

To make ^U as a single character hit CTRL-V + CTRL-U in your vi editor
for ^C hit CTRL-V + CTRL-C
for ^D hit CTRL-V + CTRL-D
etc

This works for all, except ^?
# 7  
Old 01-30-2007
Quote:
Originally Posted by sb008
if you use the stty commands in your .profile it is proper to make sure ^U, ^C and ^D are single characters and not 2 characters.

To make ^U as a single character hit CTRL-V + CTRL-U in your vi editor
for ^C hit CTRL-V + CTRL-C
for ^D hit CTRL-V + CTRL-D
etc

This works for all, except ^?
How do we do it for ^? then..?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

2. Shell Programming and Scripting

echo backspace

Hello Forum: I am trying to find a meaning to this echo escape character: echo -e "\b" Can someone tell me or give me examples of the effect that this has when used. I know that \b is the backspace, but I cannot visualise it use like any other escape such as: echo -e "\n" Thanks. --Willie (10 Replies)
Discussion started by: willie
10 Replies

3. UNIX Desktop Questions & Answers

backspace in vi search

Hi gurus, i use vi editor. when I want search something I Type / (or ? if i want search backward), that is OK. But when i make mistake in searching string how can i delete character ? I tried bacskpase but did not work (gives just strange characters). Also tried shift+bacskspace but this only... (3 Replies)
Discussion started by: wakatana
3 Replies

4. UNIX for Dummies Questions & Answers

how to test for backspace

Hi all, I am using a script which is as follows: It reads a character. I want to check if the character is a backspace character or some other character. read -n 1 x if ; then echo "backspace detected" else echo "some other character" fi Thanks in advance. (1 Reply)
Discussion started by: anandkumar
1 Replies

5. HP-UX

minimum hardware requirement for HPUX 11i V3

I am new for HPUX OS and want to pursue my career in HPUX Administration. I could not able to get following information from HP.com site, that why I need an assistance to know that - can I install HPUX 11i V3 OS on old HP B2000 & B1000 workstations (these workstation are 4 to 5 year old) or not,... (5 Replies)
Discussion started by: girish.batra
5 Replies

6. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

7. UNIX for Dummies Questions & Answers

Control + h and Backspace

Hello, I am a UNIX newbie. With that out of that way.. In order to delete a mistyped character, I need to press control+h to move the cursor to the left, and then overwrite it. If I try hitting the backspace key, it just brings me to a new prompt. Is there a way to change it so that my... (1 Reply)
Discussion started by: martinp973
1 Replies

8. HP-UX

pstat_getdisk() call doesn’t work properly in HPUX 11.31 (11i V3)

As per the man page, pstat_getdisk() call returns the number of instances, which could be 0 upon successful completion, otherwise a value of -1 is returned. Please have a look at this sample program -> #include <stdio.h> #include <sys/pstat.h> int main() { int j = 0, ret; struct... (2 Replies)
Discussion started by: sandiworld
2 Replies

9. UNIX for Advanced & Expert Users

ksh read bug in HPUX 11i

Is this a bug in ksh on HPUX 11i or is read impromperly documented? INPUT Thu Jan 18 09:14:52 PST : CIFS: Virus Detected - File ONTAP_ADMIN$\vol\vol0\DDD\Ventana\Strattoni\Race Stuff\Rumor.exe in share DDD accessed by client CLIENT (111.11.11.111) running as user USER is infected. The filer... (3 Replies)
Discussion started by: Jackaroe
3 Replies

10. HP-UX

is nedit available in hpux 11i version 2?

hi 1).in the command "set" result, the 2nd line is EDITOR=vi is it means the vi editor is the default editor? 2). is "nedit"editor available in hpux 11iv2? if no how to install or work in nedit in hpux 11i? (0 Replies)
Discussion started by: sekar sundaram
0 Replies
Login or Register to Ask a Question