HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disabling command line buffering
Operating System - HP-UX
1833874
Members
2087
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 02:10 AM
11-01-2002 02:10 AM
Disabling command line buffering
Usually, every command we enter does not return anything until we press enter,
However, I would like to have user to enter one character only as their selection by using getc in perlscript
somebody suggest me to use "stty cbreak". Unfortunately, this command is not avialable. I hope somebody can help me out.
Thank you
However, I would like to have user to enter one character only as their selection by using getc in perlscript
somebody suggest me to use "stty cbreak". Unfortunately, this command is not avialable. I hope somebody can help me out.
Thank you
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 02:43 AM
11-01-2002 02:43 AM
Re: Disabling command line buffering
This is well documented in the man page for termio (man 7 termio) under the section;
Non-Canonical Mode Input Processing (MIN/TIME Interaction)
Have it read. It explains how to setup so that a single key press can be processed in a script.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 03:25 AM
11-01-2002 03:25 AM
Re: Disabling command line buffering
Hi,
The Term::ReadKey module should give you this in Perl.
#!/opt/perl5/bin/perl
use Term::ReadKey;
ReadMode 'cbreak';
$key=ReadKey(0);
ReadMode 'normal';
Rgds, Robin
The Term::ReadKey module should give you this in Perl.
#!/opt/perl5/bin/perl
use Term::ReadKey;
ReadMode 'cbreak';
$key=ReadKey(0);
ReadMode 'normal';
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 04:01 AM
11-01-2002 04:01 AM
Re: Disabling command line buffering
There a reply here on who to do it (bottom answer);
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1be0fef4d250d611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1be0fef4d250d611abdb0090277a778c,00.html
Im from Palmerston North, New Zealand, but somehow ended up in London...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP