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
xlesswindow 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 thatxlessbehaves liketail -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 thisxlessexecutable.
π 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 neitherVISUALnorEDITORenvironment variable is set).editorDoesWindowsβ set toTRUEif 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 -Gis nice, if you've got it.) π¨οΈmaxWindowsβ maximum number of windows whichxlesswill 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 runxless *in directories with lots of files.) πquitButtonβ set toTRUEif you want a Quit button on every window which, when clicked, will quit every window started from this copy ofxless. the default isFALSE.sizeToFitβ set toTRUEif you want text windows to be only as big as they need to be, up to the maximum size specified by'geometry'.removePathβ set toTRUEif you want the directory portion of the file path removed. for example, a path like/usr/src/X11/xless/main.cwould be shortened tomain.c. the default isTRUE.defaultSearchTypeβ default method used to search the text (invoked from the Search button). possible values areExactMatch(which is the default),CaseInsensitiveandRegularExpression. πmonitorFileβ set toTRUEif you want the file to be continually checked for new input (so thatxlessbehaves liketail -f). the default isFALSE.
π 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 π¦
π 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. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: xless 1.7-14.4
- debian trixie: xless 1.7-17
- ubuntu jammy: xless 1.7-14.4
- ubuntu noble: xless 1.7-15build2
- ubuntu questing: xless 1.7-17
- ubuntu resolute: xless 1.7-17build1
- ubuntu stonking: xless 1.7-17build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms