Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work "less" command in Cash? #95

Closed
Kristinita opened this issue Aug 26, 2016 · 3 comments
Closed

How to work "less" command in Cash? #95

Kristinita opened this issue Aug 26, 2016 · 3 comments

Comments

@Kristinita
Copy link

Kristinita commented Aug 26, 2016

In folder E:\Test I have Example.txt file, contents text Sasha Forever:

Кот@DESKTOP-0G54NVG:E/Test$ pwd
E:/Test

I enter the command less Example.txt, but the file contents are not displayed in the terminal.

No content

Help is work for me

Кот@DESKTOP-0G54NVG:E/Test$ less Example.txt

                     SUMMARY OF LESS COMMANDS

        Commands marked with * may be preceded by a number, N.
        Notes in parentheses indicate the behavior if N is given.
        A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

    h  H                 Display this help.
    q  :q  Q  :Q  ZZ     Exit.
    ---------------------------------------------------------------------------

                             MOVING

    e  ^E  j  ^N  CR  *  Forward  one line   (or N lines).
    y  ^Y  k  ^K  ^P  *  Backward one line   (or N lines).
    f  ^F  ^V  SPACE  *  Forward  one window (or N lines).
    b  ^B  ESC-v      *  Backward one window (or N lines).
    z                 *  Forward  one window (and set window to N).
    w                 *  Backward one window (and set window to N).
    ESC-SPACE         *  Forward  one window, but don't stop at end-of-file.
    d  ^D             *  Forward  one half-window (and set half-window to N).
    u  ^U             *  Backward one half-window (and set half-window to N).
    ESC-)  RightArrow *  Left  one half screen width (or N positions).
    ESC-(  LeftArrow  *  Right one half screen width (or N positions).
          ---------------------------------------------------
          Default "window" is the screen height.
          Default "half-window" is half of the screen height.
    ---------------------------------------------------------------------------

HELP -- END -- Press g to see it again, or q when done

What should I do to display the contents of the file Example.txt?

Thanks.

@nfischer
Copy link
Collaborator

@Kristinita this looks like a bug.

$ less file.txt # this seems to be broken (it's intended to work)
$ cat file.txt | less # this should be a suitable workaround

@andreGarvin
Copy link
Contributor

I am working on this issue right now

@nfischer
Copy link
Collaborator

I'm actually going to close this in favor of the bug in vorpal-less (it's a bug with that project, not this repo). @andreGarvin feel free to take a look at vorpaljs/vorpal-less#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants