Module Geyser.CommandLine

Represents a (sub)commandLine primitive.


See also: Mudlet Manual

Info:

  • Author: guy,Edru

Functions

Geyser.CommandLine:append (text) appends text to the commandline see: https://wiki.mudlet.org/w/Manual:Lua_Functions#appendCmdLine
Geyser.CommandLine:clear () Clears the cmdLine see: https://wiki.mudlet.org/w/Manual:Lua_Functions#clearCmdLine
Geyser.CommandLine:getText () returns the text in the commandline see: https://wiki.mudlet.org/w/Manual:Lua_Functions#getCmdLine
Geyser.CommandLine:new2 (cons, container) Overridden constructor to use add2
Geyser.CommandLine:print (text) prints text to the commandline and clears text if there was one previously see: https://wiki.mudlet.org/w/Manual:Lua_Functions#printCmdLine(text)
Geyser.CommandLine:resetAction () Resets the action the command will be send to the game
Geyser.CommandLine:selectText () selects the text in the commandline
Geyser.CommandLine:setAction (func, ...) Sets an action to be used when text is sent in this commandline.
Geyser.CommandLine:setStyleSheet (css) Sets the style sheet of the command-line

Fields

Geyser.CommandLine Represents a (sub)commandLine primitive.


Functions

Geyser.CommandLine:append (text)
appends text to the commandline see: https://wiki.mudlet.org/w/Manual:Lua_Functions#appendCmdLine

Parameters:

  • text
Geyser.CommandLine:clear ()
Clears the cmdLine see: https://wiki.mudlet.org/w/Manual:Lua_Functions#clearCmdLine
Geyser.CommandLine:getText ()
returns the text in the commandline see: https://wiki.mudlet.org/w/Manual:Lua_Functions#getCmdLine
Geyser.CommandLine:new2 (cons, container)
Overridden constructor to use add2

Parameters:

  • cons
  • container
Geyser.CommandLine:print (text)
prints text to the commandline and clears text if there was one previously see: https://wiki.mudlet.org/w/Manual:Lua_Functions#printCmdLine(text)

Parameters:

  • text
Geyser.CommandLine:resetAction ()
Resets the action the command will be send to the game
Geyser.CommandLine:selectText ()
selects the text in the commandline
Geyser.CommandLine:setAction (func, ...)
Sets an action to be used when text is sent in this commandline. When this function is called by the event system, text the commandline sends will be appended as the final argument.

Parameters:

  • func the function to use
  • ... parameters to pass to the function
Geyser.CommandLine:setStyleSheet (css)
Sets the style sheet of the command-line

Parameters:

  • css the style sheet string

Fields

Geyser.CommandLine
Represents a (sub)commandLine primitive.
generated by LDoc 1.5.0 Last updated 2024-04-26 00:56:21