9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Double Your input with cons
@ 2001-01-11 20:06 rog
  0 siblings, 0 replies; 4+ messages in thread
From: rog @ 2001-01-11 20:06 UTC (permalink / raw)
  To: 9fans

> I can't explain the doubling behavior.

the same doubling behaviour occurs whenever the /dev/cons is in raw
mode. the interesting thing is that it happens only when you use mouse
chording, not when you do a Send menu operation.

the thing that always bites me in rio is that if you cut and paste the
last few lines of text, it executes them... this is probably consistent
behaviour but can be annoying.

  cheers,
    rog.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Double Your input with cons
@ 2001-01-12 18:02 Mark C. Otto
  0 siblings, 0 replies; 4+ messages in thread
From: Mark C. Otto @ 2001-01-12 18:02 UTC (permalink / raw)
  To: 9fans

Thanks for the help on the con input.  Telnetd does does do some handshaking to
see who is going to echo.  I am using con -d and telnet -d to figure that out

Using 

con -C -r   # -r removes the carriage returns

corrects both the double text pasting and the execution of cut text problems.  
But like Rob said, my password shows up as I type it though--thanks Russ.  
I'll just have to watch my back until I delete my password. ;-)

I could not get Jean Mehat's 1,3,2 chording to remove the extra text when I 
am not in character mode.  I imagine that it added the text in on the command
line then deleted it again.   


> 01/12/2001 10:44 AM CET
> When I have to, I usually cut with 1,2, then paste and cut with
> 1,3,2 to have text only once.

I did notice that on the command line that the cut/paste action does not 
take effect until I release the 1 button, whereas in the rest of the 
window, the actions take place as the buttons are pushed.  

I agree with Rog that in line mode, it would be nice to paste multiple 
lines and only have them sent after pushing the return.  That project
has a lower priority than getting my CPU and file server up, so I can
live more in the plan9 world.

Mark


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Double Your input with cons
@ 2001-01-11 18:48 Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2001-01-11 18:48 UTC (permalink / raw)
  To: 9fans

I can't explain the doubling behavior.

  Also when I 1,2 cut and leave an empty line, it still executes
  what was on the line.  If I do an ls, cut the ls, and return,
  I get the listing anyway.  

This is happening because while rc in a rio window is 
reading from the terminal in line-at-a-time mode
(so you can edit the line before hitting enter),
con by default reads in raw character-at-a-time mode.
Once you type the ls, the other side has those characters,
and there's no way (short of typing backspace) to get 
them back.

This is analogous to having typed
	for (i in *)
and hit enter at a rio prompt.  You're still in the
middle of input, you can edit the current line all you
want, but the previous line, although still part of
the logical unit, has been digested by rc and editing
it will not change what it was to rc.

It sounds like what you want is con -C, which sends
input a line at a time and turns on local echo.  (You'll
have to "stty -echo" on the Unix side or you'll go nuts.)

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] Double Your input with cons
@ 2001-01-11 18:23 Mark Otto
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Otto @ 2001-01-11 18:23 UTC (permalink / raw)
  To: 9fans

I've been using telnet, then con, to work on my linux box
from my plan9 terminal .
I like being able to 1,2 cut and 1,3 paste.  Unfortunately,
when I paste onto the command line, it doubles my paste.
For example, to paste in the word text, I get 

texttext

This is true when the paste is from another local window or
farther up the same window.  I haven't got this pinned down
completely.  It doesn't happen all the time.

Also when I 1,2 cut and leave an empty line, it still executes
what was on the line.  If I do an ls, cut the ls, and return,
I get the listing anyway.  

Shouldn't cons work like rc in a rio window?  I couldn't find 
anything in the updates that addressed this.

Thanks for any help.

Mark



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-12 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-11 20:06 [9fans] Double Your input with cons rog
  -- strict thread matches above, loose matches on Subject: below --
2001-01-12 18:02 Mark C. Otto
2001-01-11 18:48 Russ Cox
2001-01-11 18:23 Mark Otto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).