XTRIS(6)
๐ XTRIS(6) โ the games manual, but make it a group chat ๐
okay so bestie, buckle up: this is xtris, from the Games Manual, section 6, and it's literally multiplayer Tetris for X and it's iconic. no cap. let's get into it ๐
โจ NAME โจ
xtris โ multiplayer tetris for X. that's it, that's the vibe. ๐
๐ฆ SYNOPSIS ๐ฆ
xtris [ -display machine:0 ] [ -help ] [ -k keys ] [ -s ] [ -bw ] [ -big
] [ -flashy ] [ -n name ] [ -norestart ] [ -nospeedup ] [ server.name [
port ] ]
๐ธ OPTIONS ๐ธ
-bwโ draws the game in black & white, even if you've got a whole color display sitting right there. monochrome moment, we respect it. ๐ค๐ค-bigโ makesxtrisuse larger graphics. big main character energy, literally. ๐-displayโ tellsxtriswhich X display to open a window on and play the game. by default it connects to whatever's in the environment variableDISPLAY.-flashyโ picks an alternate, flashier set of colors for the tetris bricks. yes it's louder. yes it ate. ๐ฅ-helpโ prints out a summary of all the command-line optionsxtrisrecognizes. your little cheat sheet, bestie.-kโ redefines the keysxtrisuses. the argument has to be a 6-letter string, and those six keys are, in order: move to the left border, move one position to the left, rotate, move one position to the right, move to the right border, and drop the brick. the default keys are'JjklL '.-nโ sets the nickname for the player. max nickname length is 14 characters, so keep it snappy. ๐-norestartโ passes the'-norestart'option toxtservifxtriscan't find a server running and starts one of its own. the effect: the server is told not to automatically restart a game after everyone save one player has lost.-nospeedupโ passes the'-nospeedup'option toxtservifxtriscan't find a server running and starts one of its own. the effect: the server is told not to automatically increase the game speed.-sโ starts the game in standalone mode. in this modextriswill not connect to a server, will not be able to interact with other players, and will not be able to start bots. solo era, no witnesses. ๐
๐ง ARGUMENTS ๐ง
server.nameโ specifies the machine on which anxtrisserver (xtserv) runs.xtriswill connect to that server, and add itself to the game.
if the server is not specified, xtris will attempt to connect to a server on localhost (127.0.0.1). if no server is running on localhost, xtris will start one (with the '-once' option so it will not stay after the client exits).
portโ specifies the port to connect to, if the server was started on a port other than the default (19503).
๐ DESCRIPTION ๐
xtris is a version of the classical game of Tetris for any number of players, under the X window system. yes, any number. bring the whole group chat. ๐ซถ
Multi-player games are managed by the xtris server, xtserv; they are synchronous: all users play at the same level, start at the same time, and see each other's games. the game stops when only one player remains. last one standing, periodt. ๐
xtris keeps track of the number of lines each player has filled in the current game, and of the number of games each player has won.
Each player has a name, initially set to his login name, or the contents of the environment variables XTRISNAME or NETTRISNAME.
Whenever there is more than one player, players can type messages to each other, which appear on a special message area; players who have already lost can chat this way while the game continues. so even when you're out, you're still in the group chat. iconic.
to edit your name, move the mouse pointer to the small window at the bottom of the screen where it is displayed. the editing keys backspace and ^U are recognized, as well as iso-latin-1 characters entered with the help of the Meta (mod1) key. pressing Return propagates the name to all other players. โจ
there are two modes for the game:
- normal โ the game starts with an empty pit. whenever one user fills two or more rows at the same time, these lines appear at the bottom of some other user's screen.
at the beginning of the game, each player is set to send his lines to the next player, in the order of connection to the server. after sending some lines, the server chooses a next victim for the player, sequentially. girlypop is handing out consequences. ๐
- fun โ the game starts with some garbage at the bottom and the side of the pit. whenever one player fills a line, his victim gets an extra gray square at the highest point of his game. filling two lines simultaneously sends one line; filling three sends three, and filling four sends five. ๐
๐ฌ MESSAGES ๐ฌ
the message area is a zone under the tetris pits where users can chat by typing messages at each other. it is not displayed by default; to activate it, click on the "text" button, which appears as soon as there are two or more users.
if verbose mode is activated, the message zone also gets messages about the development of the game, users changing nicks, starting the game, sending each other lines, and so on. the lore, basically. ๐
when you put your mouse pointer in the message area, the text you type goes to the input line at the very bottom of the window. when you press Return, your line gets sent to all other players.
if you hold down the Shift key when pressing Return in the message area, the mouse pointer gets warped back to the main game. this lets you type in a message quickly during the game: press Tab to warp to the message area, and end your message with Shift+Return to warp back. speedrun those receipts bestie ๐โโ๏ธ๐จ
๐ค BOTS ๐ค
bots, or robots, are automated players that connect to the xtris server and simulate a game of Tetris. clicking on the 'bot' button will start a bot and connect it to the same game. it is also possible to start bots from the command line, with xtbot.
to remove a bot from the game, click on its name at the bottom of the window. bye bot ๐
๐ฎ KEYS AND BUTTONS ๐ฎ
these keys can be redefined with the -k option or with X resources:
J/leftBorderKeyโ Move to the left border.j/leftKeyโ Move one position to the left.k/rotateKeyโ Counter-clockwise rotation.l/rightKeyโ Move one position to the right.L/rightBorderKeyโ Move to the right border.,/downKeyโ Move down one step.Space/dropKeyโ Drop the brick.
alternatively, you can use the arrow keys to move the piece around one step, and the shifted arrow keys to move it all the way in each direction. the Up arrow key rotates. ๐ฆ
these keys can be redefined only with X resources:
s/startKeyโ Start a game.q/quitKeyโ Quit the game.p/pauseKeyโ Pause/continue the game.b/botKeyโ Start a bot on the same server.n/modeKeyโ Change the game mode between normal and fun.t/textKeyโ Open/close the message area.Return/toggleNextKeyโ Toggle display of the next brick.c/clearKeyโ Clear the message area.v/verboseKeyโ Toggle displaying of server messages about the game in the message area.z/zeroKeyโ Reset the game counters to 0.Tab/warpKeyโ Warp the mouse pointer between the game area, the nick entry area, and the message area (if visible).0-9/ (no resource) โ Set the level.
the buttons on the xtris screen are:
- Start โ Start a game (all players start at the same time).
- Quit โ Quit the game.
- Pause โ Pause or continue the game.
- Bot โ Start a bot on the same server.
0-9โ Set the level.- Normal โ Toggle normal and fun game mode.
- Text โ Display or hide the message area.
- Zero โ Reset the game counters to 0.
- Verbose โ Toggle displaying of server messages about the game in the message area.
- Clear โ Clear the message area.
clicking on the area where the Next brick is displayed also toggles displaying the Next. little hidden shortcut, iykyk. ๐
๐ RESOURCES ๐
xtris understands a number of X resources. the prefix for all of them is 'xtris.'.
in addition to the ones listed in the KEYS section, xtris understands these resources:
nameโ Specifies the player's nickname. the default is the login name.bigโ Specifies whetherxtrisshould use larger graphics or not. the default is"false".flashyโ Specifies whetherxtrisshould use flashier colors or not. the default is"false".bwโ Specifies whetherxtrisshould start up in black & white mode. the default is"false".verboseโ Specifies whetherxtrisshould start up in verbose mode. the default is"false".scrollLinesโ Specifies the size (in lines) of the message area. the default is 10, and the allowed values are from 3 to 30.backgroundโ Specifies the color used for the background.brick0โฆbrick6โ Specifies the color used for the i-th brick. (that'sbrick0,brick1,brick2,brick3,brick4,brick5,brick6, bestie ๐)
๐ฑ ENVIRONMENT ๐ฑ
the environment variable DISPLAY controls the default X display on which to open the xtris window.
the environment variables XTRISNAME and NETTRISNAME set the player's initial name.
โญ EXAMPLE โญ
the command
xtris -k 'Kkl;: ' -bw esane.net -display dedelamnio:0
starts an xtris on the display dedelamnio:0, connected to the server on esane.net, with the keys K, k, l, ;, : and space, and in black and white. she's got a whole custom loadout, obsessed. ๐ฅ
๐ SEE ALSO ๐
๐ BUGS ๐
the default colors are rather hideous. not me saying it, the manpage said it.
please report any other bugs to the author.
๐ AUTHOR ๐
xtris was written by Roger Espel Llima <roger.espel.llima@pobox.com>.
some bits of X11 code are based on xtet42 by Hugo Eide Gunnarsen of the Norwegian Institute of Technology. giving credit where it's due, always ๐ซถ
okay that's the whole page bestie, no skips, no summaries, every flag accounted for. go forth and stack blocks ๐
Roger Espel Llima ยท Oct 13, 1996 ยท XTRIS(6) โ that's a wrap on the games manual, mwah ๐โจ๐
๐ฆ where this page comes from
- nixos 26.05: xtris 1.15
- nixpkgs unstable: xtris 1.15
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms