Difference between revisions of "Paste"

From NetHackWiki
Jump to navigation Jump to search
(link to screen and autohotkey; screen config)
(Pasting on xterm/xterm based terminal emulators.)
Line 1: Line 1:
You '''paste''' into [[Nethack]] with the usual means of your operating system. For example, in [[OS X]], you paste using {{kbd|Apple|v}} into the respective popup opened by the [[tiles]] port, or using {{kbd|Apple|v}} into the terminal window you telneted to [[NAO]] with. A terminal application such as [[putty]] may also offer paste in its menus. With the tiles port, you can only paste whenever the game prompts you, e. g. what to [[engrave]] or [[wish]] for.
+
You '''paste''' into [[Nethack]] with the usual means of your operating system. For example, in [[OS X]], you paste using {{kbd|Apple|v}} into the respective popup opened by the [[tiles]] port, or using {{kbd|Apple|v}} into the terminal window you telneted to [[NAO]] with. A terminal application such as [[putty]] may also offer paste in its menus. xterm as well as most xterm based terminal emulators allow you to paste using {{kbd|shift|insert}}. With the tiles port, you can only paste whenever the game prompts you, e. g. what to [[engrave]] or [[wish]] for.
  
 
This is useful with ''[[Elbereth|ElberethElbereth]]''. Users of GNU screen can put this in their screenrc to make control-E engrave it in the dust:
 
This is useful with ''[[Elbereth|ElberethElbereth]]''. Users of GNU screen can put this in their screenrc to make control-E engrave it in the dust:

Revision as of 00:34, 29 December 2010

You paste into Nethack with the usual means of your operating system. For example, in OS X, you paste using Apple + v into the respective popup opened by the tiles port, or using Apple + v into the terminal window you telneted to NAO with. A terminal application such as putty may also offer paste in its menus. xterm as well as most xterm based terminal emulators allow you to paste using shift + insert. With the tiles port, you can only paste whenever the game prompts you, e. g. what to engrave or wish for.

This is useful with ElberethElbereth. Users of GNU screen can put this in their screenrc to make control-E engrave it in the dust:

bindkey "\005" stuff "E-y ElberethElbereth^j"

Beware, pasting junk you accidentally left in the clipboard into the tty port often results in Yet Another Stupid Death. Another hazard is IP packet fragmentation if you are playing online and paste large chunks. Unrelated but similar in effect is an unreported bug where Nethack occasionally will behave as if large portions of random text were pasted into its input stream (observed on OS X with both NAO and tiles port).

Maximum score games and pudding farming are often associated with great amounts of copy'n'pasting, often with aid of a macro recorder application.

External links