Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Input of char 's' is not possible anymore Post 302379046 by methyl on Wednesday 9th of December 2009 11:41:11 AM
Old 12-09-2009
It is likely that your .profile file or the system /etc/profile file contains a rogue "stty" command.

For example:

This command would cause the command being typed to abort whenever you type the character "s".
Code:
stty intr 's'

This command would cause most terminals to appear to hang if you typed the character 's'.
Code:
stty stop 's'


Suggest you read these profile files with "cat" piped to "more" to find out if this is what has happened.

What is the Operating System?
Code:
uname -a

Do you have root access. If so, does the problem affect the root account as well as the user account?
Are all user accounts affected?

---------- Post updated at 16:41 ---------- Previous update was at 15:30 ----------

If there is an issue with stty, this might let you get control.

Code:
First create a variable containing octal 163 (lower case "s")
S=`echo "\0163\c"`

Then enquire of the current "stty" settings, using $S in place of lower case "s".
${S}tty -a

If something is assigned to lower case "s", we can then put the terminal settings back to something
 more normal using the "stty sane" command while we fix the issue.

${S}tty ${S}ane

Now we have a means of typing a lower case "s" we can of course type any command line command.
We still wouldn't be able to type an "s" in an editor session.


Last edited by methyl; 12-09-2009 at 12:44 PM.. Reason: layout
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't login as SU anymore - SU: NO SHELL

the root shell has been changed in the file /etc/passwd, basically pointing to an incorrect directory. So now every time we login as 'su' I get the message 'su: no shell' so we can't login as superuser. Is there an easy way to rectify this? please use step by step instructions/commands - I... (4 Replies)
Discussion started by: homechoice
4 Replies

2. Shell Programming and Scripting

How to replace any char with newline char.

Hi, How to replace any character in a file with a newline character using sed .. Ex: To replace ',' with newline Input: abcd,efgh,ijkl,mnop Output: abcd efgh ijkl mnop Thnx in advance. Regards, Sasidhar (5 Replies)
Discussion started by: mightysam
5 Replies

3. Programming

Adding a single char to a char pointer.

Hello, I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here is the code as I have it: char* getext(char *file) { char *extension; int i, j;... (5 Replies)
Discussion started by: pallak7
5 Replies

4. Programming

concat const char * with char *

hello everybody! i have aproblem! i dont know how to concatenate const char* with char const char *buffer; char *b; sprintf(b,"result.txt"); strcat(buffer,b); thanx in advance (4 Replies)
Discussion started by: nicos
4 Replies

5. UNIX for Dummies Questions & Answers

Can't SSH as root anymore!

I've screwed something up in my sshd_config apparently, because I can't ssh with root anymore. I had disabled root login for security reasons, but then my ssh credentials with full administrative privelges stopped working. So then I reenabled root login (and reset ssh), but root now isn't... (3 Replies)
Discussion started by: cquarry
3 Replies

6. Programming

error: invalid conversion from ‘const char*’ to ‘char*’

Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially): xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’: xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’ The same error with all c++ constructors - gcc 4.4.4. If anyone can throw any light on... (8 Replies)
Discussion started by: GSO
8 Replies

7. Programming

I don't know how to replace input char with appropriate integer

Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong. From the first program I get a blank screen, program won't generate 10*10 matrix. And second problem is I... (6 Replies)
Discussion started by: solaris_user
6 Replies

8. Slackware

Anyone Using Slackware Anymore?

We used to use Slackware, but then moved all our servers to Ubuntu Linux. Does anyone use Slackware anymore? (8 Replies)
Discussion started by: Neo
8 Replies

9. Programming

Invalid conversion from char* to char

Pointers are seeming to get the best of me and I get that error in my program. Here is the code #include <stdio.h> #include <stdlib.h> #include <string.h> #define REPORTHEADING1 " Employee Pay Hours Gross Tax Net\n" #define REPORTHEADING2 " Name ... (1 Reply)
Discussion started by: Plum
1 Replies
dxhanziim(1X)															     dxhanziim(1X)

NAME
dxhanziim - An input server for Simplified Chinese DESCRIPTION
In a Motif environment such as CDE, Asian language input methods are supported by independent processes called input servers. The Simpli- fied Chinese input server (dxhanziim) is an X client process that can run on a standard X server, provided that the server system has the required Simplified Chinese fonts installed. This means that the input server can run on any system that can access your X display device, including the device itself. Starting the Input Server If your CDE session language is set to Simplified Chinese, the Simplified Chinese input server is started automatically, and both the lan- guage setting and the Simplified Chinese input method is available for applications that you start during that session. If your session language is not set to Simplified Chinese, you can switch to Simplified Chinese from a terminal emulation window by setting the LANG envi- ronment variable to a Simplified Chinese locale. From the same terminal emulation window, you must also use the command line to start the Simplified Chinese input method server and then other applications in which you want to use Simplified Chinese. You can start the input server on your local workstation by using the following command: % /usr/bin/X11/dxhanziim & If you want to start the input server on a remote system, log on the remote system, and enter the following commands. Substitute the name of your local system for <display_name> in the first command. % setenv DISPLAY <display_name>:0 % /usr/bin/X11/dxhanziim & After the input server is started, any Motif applications that have been internationalized to support Simplified Chinese can communicate with the server to obtain input method services. However, remember that these applications must be started after the server is started. RESTRICTIONS
This input server uses X11R6. It can connect to input-method clients running X11R4, X11R5, or X11R6 under the same locale. However, support for multiple monitors (multi-head systems) is available only to clients also running X11R6. Support for multiple monitors is not available to input-method clients using X11R5 or X11R4. If you are using a PC-style keyboard, the input server may not recognize the Backspace key as the way to delete the previous character in the input method preediting area. In this case, you must use the Delete key to delete the character. The default Alt-Space key sequence for activating and deactivating the input method may not work under CDE. In this case, invoke the dialog box for Input Method Customization and change the key sequence for Start Input Method and End Input Method to be something other than Alt- Space. For example, you could change the sequence to be Ctrl-Space. SEE ALSO
Commands: dxhangulim(1X), dxhanyuim(1X), dxjim(1X), locale(1) Others: Chinese(5), i18n_intro(5), l10n_intro(5) dxhanziim(1X)
All times are GMT -4. The time now is 12:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy