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

Use freopen to move /dev/tty input to stdin so rustyline works when piping in input. #32

Merged
merged 2 commits into from
Feb 20, 2022

Conversation

PaulJuliusMartinez
Copy link
Owner

Resolves #7.

Might clean this up a bit, or figure out how to get rid of the tiny, four-year old, 2-commit, unmaintained dependency.

I should also add better error-handling when initializing the editor so it doesn't crash the program.

@n1000
Copy link

n1000 commented Feb 13, 2022

Gave it a quick test on my system, worked fine for me also.

@PaulJuliusMartinez PaulJuliusMartinez merged commit 4a2928b into master Feb 20, 2022
@PaulJuliusMartinez PaulJuliusMartinez deleted the fix-search-when-piped branch February 20, 2022 20:32
brewingcode added a commit to brewingcode/jless that referenced this pull request Feb 21, 2022
…counts

Fixed a few conflicts around viewer.rs:toggle_mode()
* origin/master:
  Update constant in test to fit within usize on 32-bit systems.
  Keep focused line at same height when toggling between Line and Data mode.
  Implement ctrl-d/ctrl-u commands to jump by half a screen or specified number of lines.
  v0.7.2 Release
  Use freopen to move /dev/tty input to stdin so rustyline works when piping in input. (PaulJuliusMartinez#32)
  Remove x86_64-unknown-linux-musl from CI platforms; libc-stdhandle fails to compile with it.
  Don't run ci on pull_request event; it's redundant.
  Add CI badge to README.
  Only run release workflow when tags are pushed; remove aarch64 architecture.
  Fix clippy errors.
  Add CI and Release Workflows.
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

Successfully merging this pull request may close these issues.

Cannot use / to search when piped.
2 participants