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

Applications/util/less.c: Added a cut-down less(1) pager. #1140

Closed
wants to merge 6 commits into from

Conversation

DoctorWkt
Copy link

This is a start at a less(1) pager for FUZIX. It works but could do with a few improvements.

@EtchedPixels
Copy link
Owner

Fuzix console defaults are vt52 so hardcoding vt100 isn't going to work well. Should probably use libtermcap or for size savings look how the other apps use tchelp (eg vile)

@DoctorWkt
Copy link
Author

I've added code to switch to the VT52 escape sequences if TERM=vt52. This works as far as I can tell (using xterm in VT52 mode).

Weirdly, I made a different modification which used tgetent() and tgetstr() to get the actual escape sequences from /etc/termcap. I backed it out as it crashed the kernel when running the 68knano emulator.

@DoctorWkt DoctorWkt closed this Feb 4, 2025
@DoctorWkt DoctorWkt deleted the less branch February 4, 2025 21:54
@EtchedPixels
Copy link
Owner

Do you still have the tgetent/tgetstr one anywhere so I can debug the kernel ?

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.

2 participants