GithubHelp home page GithubHelp logo

Flow control about puttycyg HOT 3 OPEN

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Flow control

from puttycyg.

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
> Any way to get that or something equivalent to work

What about
$ less yourlogfile

That said, I tried Ctrl-S here, and it paused the listing for me (Ctrl-Q 
resumes).

Please check that your CYGWIN environment variable has "tty" (note that this 
has to be set before Cygwin DLL is loaded, so you should probably initialize it 
in your user or system environment variables)

$ echo $CYGWIN
nodosfilewarning tty


Now the bad news: unfortunately, this does not seem to work in all cases, and I 
don't know why:

Example 1 - OK:
$ for ((x=0;x<100000;x=x+1)); do echo $x; done
==> Ctrl-S / Ctrl-Q work as expected

Example 2 - BAD:
$ wc -l verylonglogfile
310030 verylonglogfile
$ cat verylonglogfile
==> Ctrl-S stops the listing, but I was unable to resume the output

Note that if instead of using puttycyg I execute cat verylonglogfile in a 
"normal" Cygwin (i.e. Windows CMD), everything is working fine although the 
pause is slightly delayed, maybe due to buffered output.

Original comment by [email protected] on 15 Jun 2011 at 2:20

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
It's also worth mentioning that the hung job show up as "waiting to output":

$ ps
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
O    3184       1    3184       3184    0 191995 15:58:54 /c/Program 
Files/PuTTY/cthelper
     5784    3184    5784       5568    1 191995 15:58:54 /usr/bin/bash
O    5572    5784    5572       4868    1 191995 16:00:04 /usr/bin/cat
     3268       1    3268       3268    4 191995 16:20:52 /c/Program Files/PuTTY/cthelper
     2844    3268    2844       5484    7 191995 16:20:52 /usr/bin/bash
     5072    2844    5072       2444    7 191995 16:20:54 /usr/bin/ps

Cygwin version CYGWIN_NT-5.1 1.7.9(0.237/5/3)
PuttyCyg 20101029

Original comment by [email protected] on 15 Jun 2011 at 2:27

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
(Cheers to Google's clunky Google Apps migration which kept me from seeing 
responses here...)

I don't want to use a pager that I'll have to step through the output a page at 
a time.  I want the log output displayed on its own, all the time, and be able 
to pause the output from time to time to read or copy text.

CYGWIN wasn't set to anything, but setting it to "tty" didn't have any visible 
effect.

^S does work when I run a Cygwin binary, eg. find, but not in general (in my 
immediate case, adb logcat).

Original comment by [email protected] on 1 Sep 2011 at 3:51

from puttycyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.