Changeset 94742be8ad29e8941d9eec6835f78633cf0f6142
- Timestamp:
- 11/05/07 21:46:41
(8 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1194295601 +0000
- git-parent:
[786b6c4ad0ca8e7fcb45e090ab4330a26839fc66]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1194295601 +0000
- Message:
Revert part of r22952 which broke commands of more than 1000 chars.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r786b6c4 |
r94742be |
|
| 465 | 465 | for _, client in pairs(read) do |
|---|
| 466 | 466 | local input = client:recv(1000) |
|---|
| | 467 | local done = false |
|---|
| 467 | 468 | if string.match(input,"\n$") then |
|---|
| 468 | 469 | client.buffer = string.gsub(client.buffer..input,"\r?\n$","") |
|---|
| | 470 | done = true |
|---|
| 469 | 471 | elseif client.buffer == "" |
|---|
| 470 | 472 | and ((client.type == host.client_type.stdio and input == "") |
|---|
| … | … | |
| 472 | 474 | -- Caught a ^D |
|---|
| 473 | 475 | client.buffer = "quit" |
|---|
| | 476 | done = true |
|---|
| 474 | 477 | else |
|---|
| 475 | 478 | client.buffer = client.buffer .. input |
|---|
| 476 | 479 | end |
|---|
| 477 | | if client.buffer == "" then |
|---|
| 478 | | client:send( client.env.prompt ) |
|---|
| 479 | | else |
|---|
| | 480 | if done then |
|---|
| 480 | 481 | local cmd,arg = split_input(client.buffer) |
|---|
| 481 | 482 | client.buffer = "" |
|---|