Xless(1x)

πŸ’– XLESS πŸ’–

okay bestie, gather round, because i'm about to put you onto xless β€” the file browsing program for the X Window System, manual section 1x. it's giving "i read files and i look cute doing it." no cap. πŸ¦‹


✨ SYNOPSIS ✨

xless [-f] [-toolkitoption ...] [filename ...]

🌸 DESCRIPTION 🌸

so basically xless pops up a window on the display you specified, and inside that window is the file you named on the command line β€” or whatever you piped in from stdin. πŸ’… you can scroll through the whole thing with the scrollbar sitting on the left side of the window. it's so easy it's honestly rude. xless also takes input from the standard input, in case you were wondering. πŸ‘‘

and then there's the toolbox on the right side of the window, which is lowkey the main character, because it has ALL of these:

  • pop up a help window 🫢
  • search a specified pattern πŸ”
  • search the next occurance of the above specified pattern (yes, that's how the original spells it, we respect the spelling ✨)
  • open a session of the editor β€” the one specified in the environment variable EDITOR β€” on the current file
  • reload the current file
  • change file in the current window
  • open a new xless window to display the specified file
  • print the current file
  • close the current window

if you want further info on using xless, please read the online help information, bestie. the rest of this manual page is gonna discuss customization of xless to suit the needs of a particular user. it's giving bespoke. it's giving tailored. πŸ’œ


πŸŽ€ OPTIONS πŸŽ€

xless is build upon the X Toolkit (Xt) β€” okay that's the original's grammar, "build" not "built", i don't make the rules β€” and as such it understands all the normal command line options, as described in X(1). it also supports these:

  • -follow β€” continually check the file for new input, so that xless behaves like tail -f. πŸ”₯
  • -f β€” alias for -f. (yes. literally that. i'm not touching it. the manpage said it, i'm saying it, we're all saying it together. πŸ’€)
  • -help β€” print a list of valid options.
  • -version β€” print the version number of this xless executable.

πŸ‘‘ WIDGET AND RESOURCE NAMES πŸ‘‘

on top of the usual widget resources, xless has these application resources, and you're gonna want to know all of them:

  • standardFont β€” the default font to be used if any of the specified fonts are available.
  • textFont β€” the fonts to use for the text.
  • labelFont β€” the fonts to use for labels in dialog boxes.
  • buttonFont β€” the fonts to use for labels on buttons.
  • standardCur β€” the cursors to use in the main button window with the Quit and Help commands.
  • dialogCur β€” the cursors to use in the toolbox and dialog box windows.
  • helpFile β€” name of a file to use instead of the system default helpfile.
  • editor β€” name of editor to invoke (if neither VISUAL nor EDITOR environment variable is set).
  • editorDoesWindows β€” set to TRUE if your editor brings up its own window (xedit or GNU emacs, for example.) πŸͺŸ
  • printCommand β€” command string used to print the current file. the name of the file is simply appended to this string. (enscript -G is nice, if you've got it.) πŸ–¨οΈ
  • maxWindows β€” maximum number of windows which xless will display at one time. set this to zero if you don't want a limit. (this is a good thing to set if you tend to run xless * in directories with lots of files.) 😭
  • quitButton β€” set to TRUE if you want a Quit button on every window which, when clicked, will quit every window started from this copy of xless. the default is FALSE.
  • sizeToFit β€” set to TRUE if you want text windows to be only as big as they need to be, up to the maximum size specified by 'geometry'.
  • removePath β€” set to TRUE if you want the directory portion of the file path removed. for example, a path like /usr/src/X11/xless/main.c would be shortened to main.c. the default is TRUE.
  • defaultSearchType β€” default method used to search the text (invoked from the Search button). possible values are ExactMatch (which is the default), CaseInsensitive and RegularExpression. πŸ”
  • monitorFile β€” set to TRUE if you want the file to be continually checked for new input (so that xless behaves like tail -f). the default is FALSE.

🌈 COLOR RESOURCES 🌈

if you have a color display and you're running at least X11R5, you may want to add a line like this to your personal resources file:

#ifdef COLOR
*customization: -color
#endif

this will allow you to get the color-related resources for not only xless, but for every program which sets up its own color resources. obsessed. 🎨✨

versions of X earlier than X11R5 don't support the customization resource. if you're on one of those, you'll have to include the color resources in your personal resources file. sorry bestie, that's just the vibe check result. πŸ˜”

πŸ¦‹ SEE ALSO πŸ¦‹

X(1), X(8C), more(1), less(1)


πŸ’€ BUGS πŸ’€

there probably are some.

ngl that's the most honest sentence in the whole manpage and i respect it so much.


🌟 AUTHOR 🌟

Dave Glowacki (UC Berkeley Software Warehouse) <dglo@CS.Berkeley.EDU>

originally by Carlo Lisa (MIT Project Athena) from xmore written by Chris Peterson (MIT Project Athena). legends only, fr fr. πŸ‘‘


and that's the whole page, bestie!! this one shipped as part of X Version 11, dated 6 June 1993, and it lives in the manual as Xless(1x). go forth and browse some files, you absolute icon. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά