Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
control characters
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David.Stanford@gmail.com  
View profile  
 More options Jun 30 2006, 10:11 am
Newsgroups: comp.os.minix
From: "David.Stanf...@gmail.com" <David.Stanf...@gmail.com>
Date: 30 Jun 2006 07:11:24 -0700
Local: Fri, Jun 30 2006 10:11 am
Subject: control characters
I've been looking at the control character's in tty.c with an eye on
extending this some more. However, from experiments it seems like
there's something beyond tty.c that is catching the control
character's. For instance, ^T isn't defined in termios.h, but it looks
like it has the function of toggling the last two character's typed.
So, beyond tty.c, what else is likely to be catching control
characters?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Gras  
View profile  
 More options Jun 30 2006, 11:27 am
Newsgroups: comp.os.minix
From: Ben Gras <b...@few.vu.nl>
Date: 30 Jun 2006 15:27:25 GMT
Local: Fri, Jun 30 2006 11:27 am
Subject: Re: control characters
All,

> I've been looking at the control character's in tty.c with an eye on
> extending this some more. However, from experiments it seems like
> there's something beyond tty.c that is catching the control
> character's. For instance, ^T isn't defined in termios.h, but it looks
> like it has the function of toggling the last two character's typed.

That is a readline(3)-ism, so in the application.

> So, beyond tty.c, what else is likely to be catching control
> characters?

Nope. Well, IS of course, but even IS requests things from tty..

        =Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David.Stanford@gmail.com  
View profile  
 More options Jun 30 2006, 2:06 pm
Newsgroups: comp.os.minix
From: "David.Stanf...@gmail.com" <David.Stanf...@gmail.com>
Date: 30 Jun 2006 11:06:43 -0700
Local: Fri, Jun 30 2006 2:06 pm
Subject: Re: control characters

> > character's. For instance, ^T isn't defined in termios.h, but it looks
> > like it has the function of toggling the last two character's typed.

> That is a readline(3)-ism, so in the application.

I suspect the shell is doing it. Unfortunately I'm having a hard time
finding the shell's source. It's not part of the minix 3 source
download, and my unix-fu so far has not been up to the task. I'll have
to take another look tonight.

> > So, beyond tty.c, what else is likely to be catching control
> > characters?

> Nope. Well, IS of course, but even IS requests things from tty..

If I remember correctly, control character's not specifically defined
to do anything in tty.c get passed as part of the character buffer to
the requesting process, right?

Thanks for your help Ben.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Gras  
View profile  
 More options Jun 30 2006, 8:19 pm
Newsgroups: comp.os.minix
From: Ben Gras <b...@few.vu.nl>
Date: 1 Jul 2006 00:19:23 GMT
Local: Fri, Jun 30 2006 8:19 pm
Subject: Re: control characters
All,

>> That is a readline(3)-ism, so in the application.

> I suspect the shell is doing it.

Yep.

> If I remember correctly, control character's not specifically defined
> to do anything in tty.c get passed as part of the character buffer to
> the requesting process, right?

Yep. And sometimes some other transformations are applied (CR/LF for
instance).

        =Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
student  
View profile  
 More options Jul 4 2006, 1:27 pm
Newsgroups: comp.os.minix
From: "student" <schaphal...@gmail.com>
Date: 4 Jul 2006 10:27:36 -0700
Local: Tues, Jul 4 2006 1:27 pm
Subject: Re: control characters
Hi ,

Even I am trying to do the same thing ... but I faced the similar
problem.
I tried to figure out in the code ... but still no success
Did any one get a solution for this ??
Please let me know in this regards

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
student  
View profile  
 More options Jul 4 2006, 1:27 pm
Newsgroups: comp.os.minix
From: "student" <schaphal...@gmail.com>
Date: 4 Jul 2006 10:27:50 -0700
Local: Tues, Jul 4 2006 1:27 pm
Subject: Re: control characters
Hi ,

Even I am trying to do the same thing ... but I faced the similar
problem.
I tried to figure out in the code ... but still no success
Did any one get a solution for this ??
Please let me know in this regards

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David.Stanford@gmail.com  
View profile  
 More options Jul 4 2006, 5:10 pm
Newsgroups: comp.os.minix
From: "David.Stanf...@gmail.com" <David.Stanf...@gmail.com>
Date: 4 Jul 2006 14:10:19 -0700
Local: Tues, Jul 4 2006 5:10 pm
Subject: Re: control characters

student wrote:
> Hi ,

> Even I am trying to do the same thing ... but I faced the similar
> problem.
> I tried to figure out in the code ... but still no success
> Did any one get a solution for this ??
> Please let me know in this regards

It looks like the shell, ash, is catching the control keys and
manipulating them based on the functions in the library file
editline.c. I haven't yet figured out how this happens since it seems
like tty.c is at a lower level in the operating system. I haven't
started digging through the shell code yet to see how this happens.

You can see the effects of changes to tty.c and termios.h if you put
the shell in a busy state, such as performing a long find command.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »