5811 Commits

Author SHA1 Message Date
payonel
2abd8b3134 closes #2507
/bin/less and /bin/more were able to lock up the system if they call string.gsub(string, function) on a very large string (~144k chars long).
The machine layer intercepts expensive strings calls by checking the length of the string, but it does not intercept gsub calls when the replace action is a function

The fix is to intercept all long string actions, not just non-function replacement gsub calls

Note that /bin/more is now more efficient and doesn't call string.gsub, but this is still the right fix to keep the sandbox from being able to lock up the system with string methods
2017-09-17 11:30:19 +02:00
payonel
47c67a119f term fixes, scroll methods was moved 2017-09-16 08:19:49 +02:00
payonel
5c9760cf77 thread code cleanup for clarity, no api change 2017-09-13 10:46:17 -07:00
payonel
6190d75c37 more cats
improve cat io by directly feeding stream data to output and optimize more to not use line parsing
2017-09-12 15:26:25 -07:00
payonel
1ace76bead Merge remote-tracking branch 'upstream/master-MC1.9.4' into master-MC1.10 2017-09-11 08:58:07 -07:00
payonel
5b812239a1 Merge remote-tracking branch 'upstream/master-MC1.8.9' into master-MC1.9.4 2017-09-11 08:57:51 -07:00
payonel
35e51459b4 Merge remote-tracking branch 'upstream/master-MC1.7.10' into master-MC1.8.9 2017-09-11 08:57:29 -07:00
payonel
0b767e6c7c fix cat when input is tty 2017-09-11 08:09:08 -07:00
payonel
9d544b3731 tty and term fixes and correctness
* term.pull fix, the tty stream no longer needs a cursor object
* buffer reads now pass the original result and reason all the way back. this allows /bin/sh to distinguish ^c from ^d
* /bin/sh cleanup to not show prompt when there is no input tty
2017-09-10 23:33:13 -07:00
payonel
c5b112b4a5 Merge remote-tracking branch 'upstream/master-MC1.9.4' into master-MC1.10 2017-09-10 01:03:49 -07:00
payonel
e810b556e1 Merge remote-tracking branch 'upstream/master-MC1.8.9' into master-MC1.9.4 2017-09-10 01:03:23 -07:00
payonel
fc314fb3c9 Merge remote-tracking branch 'upstream/master-MC1.7.10' into master-MC1.8.9 2017-09-10 01:02:57 -07:00
payonel
d8033669eb optimizations and fixes
* /bin/cat chunk based [huge performance and memory savings, can handle enormous files now]
* /bin/sleep blinks now
* removed unnecessary methods from tty
* cursor blinking and scrolling terminal improvements
* fixed bad term call to tty write
2017-09-10 00:58:54 -07:00
Florian Nücke
a9251de67d Merge branch '28Smiles-master-MC1.10' into master-MC1.10 2017-09-09 20:14:14 +02:00
Florian Nücke
4f939ac99f Merge branch 'master-MC1.10' of https://github.com/28Smiles/OpenComputers into 28Smiles-master-MC1.10 2017-09-09 20:10:03 +02:00
payonel
8af5c0d056 further serialization cleanup 2017-09-08 20:01:25 -07:00
payonel
1bc6e84af2 use a growing vector of string parts to serialize a string, returning table.concat when done 2017-09-08 20:01:25 -07:00
payonel
eaf2b0cf8a ignore the robot magic filesystem with install, and small /bin/sleep fix
/bin/sleep ^c was printing an error because it was returning the event data, which prompts was interpretting as error details [unexpected]
use a .prop file to have the robot component magic fs be ignored when running `install`
2017-09-08 00:49:50 -07:00
payonel
81ffb2187b Merged contribution from BillyJimson
https://github.com/MightyPirates/OpenComputers/pull/2324
2017-09-07 18:13:15 -07:00
payonel
ae501a859d return true from thread method as per documented specification 2017-09-07 10:34:47 -07:00
payonel
fc486d4bd2 openos 1.6.8 update
Changes

* thread: fix coma state issue where thread would not resume
* thread: add thread.current(), returns current thread [ the init thread is still technically not a thread ]
* tty: simplify the api with read, and separate all stream methods from the library
* sleep: /bin/sleep will now show blinking cursor and can be interrupted
* echo: use io.write instead of print. print loads slightly more resources
2017-09-07 08:40:30 -07:00
payonel
a1512451fe support s and u vt100 codes
strangely, the real terminal appears to treat [su] the exact same as [78] even though the specification says [su] is position only
2017-08-23 12:24:05 -07:00
payonel
c4c3811376 revert removal of process.running -- some scripts still use it 2017-08-22 11:22:06 -07:00
payonel
064d9bd55a Merge remote-tracking branch 'upstream/master-MC1.9.4' into master-MC1.10 2017-08-08 18:48:04 -07:00
payonel
a4b470e166 Merge remote-tracking branch 'upstream/master-MC1.8.9' into master-MC1.9.4 2017-08-08 18:47:44 -07:00
payonel
cc4cc2d5e9 Merge remote-tracking branch 'upstream/master-MC1.7.10' into master-MC1.8.9 2017-08-08 18:47:00 -07:00
payonel
2a178f6d41 fix quiet /bin/source
quiet mode in /bin/source was a mess -- making .shrc scripts not able to print. Also, a lot of the /bin/sh arg parsing code has traditionally been over complicated. cleaned that up as well thanks to old code that expected strings in the args having been removed some time ago
2017-08-08 18:45:36 -07:00
payonel
f00c2dd6a2 simplify tty check slightly and add comment that tty should not be used directly by user code
maybe i should just move tty to /lib/core
2017-08-08 18:45:36 -07:00
Leon
cad14acf0d Added AE2 Integration
Now fully using the AE2-Api
2017-07-25 15:25:20 +02:00
Florian Nücke
21d5b21e7f Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2017-07-23 20:23:42 +02:00
Florian Nücke
d974b52dbf Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2017-07-23 20:23:21 +02:00
Florian Nücke
67895541c6 Fix adapter bottom texture. 2017-07-22 18:15:16 +02:00
Florian Nücke
f989cff704 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2017-07-22 15:49:21 +02:00
Florian Nücke
9f9041c580 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2017-07-22 15:49:12 +02:00
Florian Nücke
9d9251a67c Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2017-07-22 15:48:59 +02:00
Florian "Sangar" Nücke
40ca104a75 Merge pull request #2402 from loveyanbei/master-MC1.7.10
Add zh_CN localization of manual .and tried to fix the infinite loop bug
2017-07-22 15:47:52 +02:00
Florian "Sangar" Nücke
fb77e0ed24 Merge branch 'master-MC1.7.10' into master-MC1.7.10 2017-07-22 15:47:17 +02:00
Florian "Sangar" Nücke
d316e2ca4c Merge pull request #2075 from thiakil/WorldInventoryAnalytics-updates-pr
World Inventory Analytics Improvements
2017-07-22 15:19:05 +02:00
Florian Nücke
22cdfeb2cc Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2017-07-22 15:15:55 +02:00
Florian Nücke
0ad515451e Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2017-07-22 15:14:20 +02:00
Florian Nücke
d43e6530de Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2017-07-22 15:14:06 +02:00
Florian "Sangar" Nücke
e045f7c3e0 Merge pull request #2460 from cyber01/RU_doc
Upgrading Russian translation to the current state
2017-07-22 15:12:35 +02:00
Florian "Sangar" Nücke
4023d3f4af Merge branch 'master-MC1.7.10' into RU_doc 2017-07-22 15:12:03 +02:00
Florian Nücke
627a7c3fe4 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2017-07-22 14:53:08 +02:00
Florian Nücke
42c8e07bc1 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2017-07-22 14:52:54 +02:00
Florian Nücke
66b6fbb7fa Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2017-07-22 14:52:39 +02:00
Florian Nücke
cdc8b2d792 Fix for infinite loop in manual, closes #2395. 2017-07-22 14:50:56 +02:00
payonel
de080b28ef Add SHODAN to list of robot names
Adds a recognizable AI not on this list, SHODAN from the System Shock games.
2017-07-19 22:33:54 -07:00
payonel
e4c0df8bfa Add tree utility 2017-07-19 22:33:41 -07:00
cyber01
9fbef39829 Upgrading to the current state (compared to the original OS), translated the missing parts. Merged with @MoonlightOwl changes 2017-07-13 11:31:30 +03:00