Skip to content

Commit

Permalink
Create console.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrawl authored Oct 31, 2023
1 parent 21ec934 commit 7c6c4d0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/API/console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# $gtk.console

This object represents the DragonRuby Console and allows you to interact with the console through your code.


## set_command String

Takes the String parameter and places it on the console commandline but does not execute it. The following will place `puts "Hello DragonRuby!"` on the commandline.

```ruby
$gtk.console.set_command 'puts "Hello DragonRuby!"'
```

## eval_the_set_command

Forces the execution of whatever command is on the DragonRuby console commandline. If there is nothing on the commandline, it will return nil.

```ruby
$gtk.console.eval_the_set_command
```

## set_command_extended
## set_command_silent
## set_command_with_history
## set_command_with_history_silent
## set_system_command

0 comments on commit 7c6c4d0

Please sign in to comment.