Make easier to cut-n-paste
This commit is contained in:
parent
d33d38e768
commit
f49687256d
|
@ -35,11 +35,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# Das folgende Beispiel erzeugt keine Ausgabe auf der Kommandozeile,
|
||||
# sondern zeigt eine Benachrichtigung an.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI-Benachrichtigung",
|
||||
> text="Dies ist eine Benachrichtigung von der Kommandozeile!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI-Benachrichtigung",
|
||||
text="Dies ist eine Benachrichtigung von der Kommandozeile!"})
|
||||
'
|
||||
|
||||
# Starte eine lesen-ausführen-ausgeben-Schleife (REPL).
|
||||
# In diesem Modus wird jede Zeile zu awesome geschickt; auf die selbe Art
|
||||
|
|
|
@ -38,11 +38,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# The following does not return anything on the command line,
|
||||
# but will show a notification.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI Notification",
|
||||
> text="This is a notification sent from the command line!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI Notification",
|
||||
text="This is a notification sent from the command line!"})
|
||||
'
|
||||
|
||||
# Entering read-eval-print-loop mode
|
||||
# This mode will send every line to awesome, exactly the same as passing
|
||||
|
|
|
@ -35,11 +35,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# The following does not return anything on the command line,
|
||||
# but will show a notification.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI Notification",
|
||||
> text="This is a notification sent from the command line!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI Notification",
|
||||
text="This is a notification sent from the command line!"})
|
||||
'
|
||||
|
||||
# Entering read-eval-print-loop mode
|
||||
# This mode will send every line to awesome, exactly the same as passing
|
||||
|
|
|
@ -38,11 +38,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# The following does not return anything on the command line,
|
||||
# but will show a notification.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI Notification",
|
||||
> text="This is a notification sent from the command line!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI Notification",
|
||||
text="This is a notification sent from the command line!"})
|
||||
'
|
||||
|
||||
# Entering read-eval-print-loop mode
|
||||
# This mode will send every line to awesome, exactly the same as passing
|
||||
|
|
|
@ -37,11 +37,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# Следующий пример не возвращает ничего в командную строку,
|
||||
# но показывает уведомление.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI Notification",
|
||||
> text="Это уведомление было отправлено из командной строки!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI Notification",
|
||||
text="Это уведомление было отправлено из командной строки!"})
|
||||
'
|
||||
|
||||
# Интерактивный режим (REPL)
|
||||
# В данном режиме каждая строка введенная пользователем
|
||||
|
|
|
@ -36,11 +36,11 @@ $ awesome-client 'return 1+1, "Hello, world"'
|
|||
# The following does not return anything on the command line,
|
||||
# but will show a notification.
|
||||
$ awesome-client '
|
||||
> naughty = require("naughty")
|
||||
> naughty.notify({
|
||||
> title="CLI Notification",
|
||||
> text="This is a notification sent from the command line!"})
|
||||
> '
|
||||
naughty = require("naughty")
|
||||
naughty.notify({
|
||||
title="CLI Notification",
|
||||
text="This is a notification sent from the command line!"})
|
||||
'
|
||||
|
||||
# Entering read-eval-print-loop mode
|
||||
# This mode will send every line to awesome, exactly the same as passing
|
||||
|
|
Loading…
Reference in New Issue