Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
b8836621
Commit
b8836621
authored
Nov 05, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luarc: use info instead of error when exiting, don't try to interpret empty lines as commands
parent
83e72e86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
share/luaintf/rc.lua
share/luaintf/rc.lua
+4
-4
No files found.
share/luaintf/rc.lua
View file @
b8836621
...
@@ -111,7 +111,7 @@ end
...
@@ -111,7 +111,7 @@ end
function shutdown(name,client)
function shutdown(name,client)
client:append("Bye-bye!")
client:append("Bye-bye!")
h:broadcast("Shutting down.")
h:broadcast("Shutting down.")
vlc.msg.
err
("Requested shutdown.")
vlc.msg.
info
("Requested shutdown.")
vlc.quit()
vlc.quit()
end
end
...
@@ -466,17 +466,17 @@ while not vlc.should_die() do
...
@@ -466,17 +466,17 @@ while not vlc.should_die() do
local
input
=
client
:
recv
(
1000
)
local
input
=
client
:
recv
(
1000
)
if
string.match
(
input
,
"
\n
$"
)
then
if
string.match
(
input
,
"
\n
$"
)
then
client
.
buffer
=
string.gsub
(
client
.
buffer
..
input
,
"
\r
?\n$"
,
""
)
client
.
buffer
=
string.gsub
(
client
.
buffer
..
input
,
"
\r
?\n$"
,
""
)
done
=
true
elseif
client
.
buffer
==
""
elseif
client
.
buffer
==
""
and
((
client
.
type
==
host
.
client_type
.
stdio
and
input
==
""
)
and
((
client
.
type
==
host
.
client_type
.
stdio
and
input
==
""
)
or
(
client
.
type
==
host
.
client_type
.
net
and
input
==
"
\004
"
))
then
or
(
client
.
type
==
host
.
client_type
.
net
and
input
==
"
\004
"
))
then
-- Caught a ^D
-- Caught a ^D
client
.
buffer
=
"quit"
client
.
buffer
=
"quit"
done
=
true
else
else
client
.
buffer
=
client
.
buffer
..
input
client
.
buffer
=
client
.
buffer
..
input
end
end
if
done
then
if
client
.
buffer
==
""
then
client
:
send
(
client
.
env
.
prompt
)
else
local
cmd
,
arg
=
split_input
(
client
.
buffer
)
local
cmd
,
arg
=
split_input
(
client
.
buffer
)
client
.
buffer
=
""
client
.
buffer
=
""
client
:
switch_status
(
host
.
status
.
write
)
client
:
switch_status
(
host
.
status
.
write
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment