You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/blog/posts/inline-mode.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ You can see this in action if you run the [calculator example](https://github.co
16
16
17
17
The application appears directly under the prompt, rather than occupying the full height of the screen—which is more typical of TUI applications.
18
18
You can interact with this calculator using keys *or* the mouse.
19
-
When you press ++ctrl+c++ the calculator disappears and returns you to the prompt.
19
+
When you press ++ctrl+q++ the calculator disappears and returns you to the prompt.
20
20
21
21
Here's another app that creates an inline code editor:
Copy file name to clipboardExpand all lines: docs/guide/app.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ If we run this app with `python simple02.py` you will see a blank terminal, some
32
32
33
33
When you call [App.run()][textual.app.App.run] Textual puts the terminal in to a special state called *application mode*. When in application mode the terminal will no longer echo what you type. Textual will take over responding to user input (keyboard and mouse) and will update the visible portion of the terminal (i.e. the *screen*).
34
34
35
-
If you hit ++ctrl+c++ Textual will exit application mode and return you to the command prompt. Any content you had in the terminal prior to application mode will be restored.
35
+
If you hit ++ctrl+q++ Textual will exit application mode and return you to the command prompt. Any content you had in the terminal prior to application mode will be restored.
Copy file name to clipboardExpand all lines: docs/guide/input.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,13 +172,11 @@ The tuple of three strings may be enough for simple bindings, but you can also r
172
172
173
173
Individual bindings may be marked as a *priority*, which means they will be checked prior to the bindings of the focused widget. This feature is often used to create hot-keys on the app or screen. Such bindings can not be disabled by binding the same key on a widget.
174
174
175
-
You can create priority key bindings by setting `priority=True` on the Binding object. Textual uses this feature to add a default binding for ++ctrl+c++ so there is always a way to exit the app. Here's the bindings from the App base class. Note the first binding is set as a priority:
175
+
You can create priority key bindings by setting `priority=True` on the Binding object. Textual uses this feature to add a default binding for ++ctrl+q++ so there is always a way to exit the app. Here's the `BINDINGS` from the App base class. Note the quit binding is set as a priority:
Hit ++ctrl+c++ to exit the app and return to the command prompt.
125
+
Hit ++ctrl+q++ to exit the app and return to the command prompt.
126
126
127
127
### A closer look at the App class
128
128
@@ -157,7 +157,7 @@ Here's what the above app defines:
157
157
--8<--"docs/examples/tutorial/stopwatch01.py"
158
158
```
159
159
160
-
The final three lines create an instance of the app and calls the [run()][textual.app.App.run] method which puts your terminal in to *application mode* and runs the app until you exit with ++ctrl+c++. This happens within a `__name__ == "__main__"` block so we could run the app with `python stopwatch01.py` or import it as part of a larger project.
160
+
The final three lines create an instance of the app and calls the [run()][textual.app.App.run] method which puts your terminal in to *application mode* and runs the app until you exit with ++ctrl+q++. This happens within a `__name__ == "__main__"` block so we could run the app with `python stopwatch01.py` or import it as part of a larger project.
0 commit comments