Increase page length for ANSI, and minor updates
This commit is contained in:
parent
390f52a460
commit
f2e6a250cc
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -2,4 +2,5 @@
|
|||||||
*.css linguist-vendored
|
*.css linguist-vendored
|
||||||
*.scss linguist-vendored
|
*.scss linguist-vendored
|
||||||
*.js linguist-vendored
|
*.js linguist-vendored
|
||||||
|
*.ans text eol=crlf
|
||||||
CHANGELOG.md export-ignore
|
CHANGELOG.md export-ignore
|
||||||
|
@ -346,7 +346,7 @@ abstract class Frame
|
|||||||
*/
|
*/
|
||||||
private function render_page(int $num,string $frame)
|
private function render_page(int $num,string $frame)
|
||||||
{
|
{
|
||||||
if ($num > 999999999)
|
if ($num > (int)str_repeat(9,static::$pagenum_length))
|
||||||
throw new \Exception('Page Number too big',500);
|
throw new \Exception('Page Number too big',500);
|
||||||
|
|
||||||
if (strlen($frame) !== 1)
|
if (strlen($frame) !== 1)
|
||||||
@ -400,7 +400,7 @@ abstract class Frame
|
|||||||
// Header
|
// Header
|
||||||
$sid = R_RED.'T'.R_BLUE.'E'.R_GREEN.'S'.R_YELLOW.'T';
|
$sid = R_RED.'T'.R_BLUE.'E'.R_GREEN.'S'.R_YELLOW.'T';
|
||||||
$content .= substr($sid.'-'.str_repeat('12345678901234567890',4),0,static::$header_length+(strlen($sid)-$so->strlenv($sid))).
|
$content .= substr($sid.'-'.str_repeat('12345678901234567890',4),0,static::$header_length+(strlen($sid)-$so->strlenv($sid))).
|
||||||
R_WHITE.'999999999a'.R_RED.sprintf('%07.0f',999).'u';
|
R_WHITE.str_repeat('9',static::$pagenum_length).'a'.R_RED.sprintf('%07.0f',999).'u';
|
||||||
|
|
||||||
$content .= R_WHITE.str_repeat('+-',static::$frame_width/2-3).' '.R_RED.'01';
|
$content .= R_WHITE.str_repeat('+-',static::$frame_width/2-3).' '.R_RED.'01';
|
||||||
$content .= R_WHITE.'Name: '.ESC.str_repeat('t',5).' |'.str_repeat('+-',static::$frame_width/2-8).'|';
|
$content .= R_WHITE.'Name: '.ESC.str_repeat('t',5).' |'.str_repeat('+-',static::$frame_width/2-8).'|';
|
||||||
|
@ -12,8 +12,8 @@ class Ansi extends AbstractFrame
|
|||||||
public static $frame_length = 22;
|
public static $frame_length = 22;
|
||||||
public static $frame_width = 80;
|
public static $frame_width = 80;
|
||||||
|
|
||||||
public static $header_length = 60;
|
public static $header_length = 58;
|
||||||
public static $pagenum_length = 9;
|
public static $pagenum_length = 11;
|
||||||
public static $cost_length = 7;
|
public static $cost_length = 7;
|
||||||
public static $cost_unit = 'u';
|
public static $cost_unit = 'u';
|
||||||
|
|
||||||
|
@ -584,10 +584,18 @@ abstract class Server {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bookmark page
|
||||||
|
if ($cmd === '05') {
|
||||||
|
$this->sendBaseline($client, RED.'NOT IMPLEMENTED YET?');
|
||||||
|
$mode = FALSE;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Report a problem
|
// Report a problem
|
||||||
if ($cmd === '08') {
|
if ($cmd === '08') {
|
||||||
$this->sendBaseline($client, RED.'NOT IMPLEMENTED YET?');
|
$this->sendBaseline($client, RED.'NOT IMPLEMENTED YET?');
|
||||||
$read = STAR;
|
$mode = FALSE;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -617,7 +625,7 @@ abstract class Server {
|
|||||||
$current['fieldreset'] = TRUE;
|
$current['fieldreset'] = TRUE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$mode = false;
|
$mode = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -76,16 +76,21 @@ class FrameImport extends Command
|
|||||||
$o->frame = $this->argument('frame');
|
$o->frame = $this->argument('frame');
|
||||||
$o->index = $this->argument('index');
|
$o->index = $this->argument('index');
|
||||||
$o->mode_id = $mo->id;
|
$o->mode_id = $mo->id;
|
||||||
}
|
|
||||||
|
|
||||||
$o->content = str_replace('\\','\\\\',($this->option('trim'))
|
|
||||||
? substr(file_get_contents($this->argument('file')),40)
|
|
||||||
: file_get_contents($this->argument('file')));
|
|
||||||
|
|
||||||
$o->access = $this->option('access');
|
$o->access = $this->option('access');
|
||||||
$o->public = $this->option('public');
|
$o->public = $this->option('public');
|
||||||
$o->cost = $this->option('cost');
|
$o->cost = $this->option('cost');
|
||||||
$o->type = $this->option('type');
|
$o->type = $this->option('type');
|
||||||
|
}
|
||||||
|
|
||||||
|
// We need to escape any back slashes.
|
||||||
|
$o->content = str_replace('\\','\\\\',($this->option('trim'))
|
||||||
|
? substr(file_get_contents($this->argument('file')),40)
|
||||||
|
: file_get_contents($this->argument('file')));
|
||||||
|
|
||||||
|
// If we have 0x1aSAUCE, we'll discard the sauce.
|
||||||
|
if ($x = strpos($o->content,chr(0x1a).'SAUCE')) {
|
||||||
|
$o->content = substr($o->content,0,$x-1).chr(0x0a);
|
||||||
|
}
|
||||||
|
|
||||||
$o->save();
|
$o->save();
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[0;40;37m [1mレトトトトトトトソ レトトトトトトトソレトトトトトトトソ レトトトトトトトソ
|
[0;40;37m [1mレトトトトトトトソ レトトトトトトトソレトトトトトトトソ レトトトトトトトソ
|
||||||
[0;31mÍ[1;37m³[30mù[37m Õ¸Õ¸[31mú[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³Ô͸[30mù[37m Õ;[31mÍ[37m³[30mù[37m Õ͸[31mú[37m³[0m [1m [0m[18C[1;30mddddddddddddddddd[0;41m [1;40m³ ³Ô¾³ ³[41m [40m³ ÀÄÙ ³[31m²²[37m³ ³[41;31m°²[37m [40m³ ³[31m²[37m³ ³
|
[0;31mÍ[1;37m³[30mù[37m Õ¸Õ¸[31mú[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³Ô͸[30mù[37m Õ;[31mÍ[37m³[30mù[37m Õ͸[31mú[37m³[31mÍ[0m [1m [0m[18C[1;30mddddddddddddddddd[0;41m [1;40m³ ³Ô¾³ ³[41m [40m³ ÀÄÙ ³[31m²²[37m³ ³[41;31m°²[37m [40m³ ³[31m²[37m³ ³[41m [0m
|
||||||
[41;31m°[40;37m³ ³[31m²±[37m³ ³[41;31m°[40;37m³ Õ͸ ³[31m°°[37m³ ³[31m²[41mÛ°[40;37m³ ³[31m±[37m³ ³
|
[1;41;31m°[40;37m³ ³[31m²±[37m³ ³[41;31m°[40;37m³ Õ͸ ³[31m°°[37m³ ³[31m²[41mÛ°[40;37m³ ³[31m±[37m³ ³[41;31m°[0m
|
||||||
[41;31m±[40;37m³ ³[31m±[41m°[40;37m³ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[31m±±[37m³ ³[41;31m°±±[40;37m³ ³[41;31m°[40;37m³ ³
|
[1;41;31m±[40;37m³ ³[31m±[41m°[40;37m³ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[31m±±[37m³ ³[41;31m°±±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m±[0m
|
||||||
[0;31mÍ[1;37m³[30mù[37m ³[31mÍÍ[37m³[30mù[37m³[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³ÚÄÙ[30mù[37m ÀÄ¿[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³[0m [1;41m *0# to get back here anytime[0m [1mÔÍ; Ô; ÔÍÍ; Ô;ÔÍÍÍÍÍÍ; ÔÍÍ; Ô;
|
[31mÍ[1;37m³[30mù[37m ³[31mÍÍ[37m³[30mù[37m³[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³ÚÄÙ[30mù[37m ÀÄ¿[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³[31mÍ[0;30m [1;41;37m *0# to get back here anytime[0m [1mÔÍ; Ô; ÔÍÍ; Ô;ÔÍÍÍÍÍÍ; ÔÍÍ; Ô;
|
||||||
|
|
||||||
[0m[24C[1m [41;30m゚[40;37m [41;30m゚[40;37m [41;30m゚[40m゚[41m゚[40;37m [41;30m゚[40m゚[31mワ[37m [41;30m゚[40m゚゚[37m [41;30m゚[40m゚[41m゚[0m
|
[0m[24C[1m [41;30m゚[40;37m [41;30m゚[40;37m [41;30m゚[40m゚[41m゚[40;37m [41;30m゚[40m゚[31mワ[37m [41;30m゚[40m゚゚[37m [41;30m゚[40m゚[41m゚[0m
|
||||||
[24C[1m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40m゚ [37m [41;31mワ[40m゚ワ
|
[24C[1m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40;37m [41;31mワ[40m゚ [37m [41;31mワ[40m゚ワ
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[0;40;37m [1mレトトトトトトトソ レトトトトトトトソ レトトトトトトトソ レトトトトトトソ レトトトトトトトソ レトトトソ レトソ レトトトトトトトソ
|
[0;40;37m [1mレトトトトトトトソ レトトトトトトトソ レトトトトトトトソ レトトトトトトソ レトトトトトトトソ レトトトソ レトソ レトトトトトトトソ
|
||||||
[0;31mÍ[1;37m³[30mù[37m ÕÍÍ;[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸À¿[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³
|
[0;31mÍ[1;37m³[30mù[37m ÕÍÍ;[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸À¿[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[31mÍ[37m³[30mù[37m ³[31mÍ[37m³[30mù[37m³[31mÍ[37m³[30mù[37m Õ͸[30mù[37m³[0;31mÍ
|
||||||
[0;41m [1;40m³ ³ÚÄÄ¿[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41m [40m³ ÀÄÙÚÙ[41;31m [40;37m³ ÀÄÙ ³[41m [40m³ À¿ÀÄÙ
|
[41;37m [1;40m³ ³ÚÄÄ¿[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41;31m°[40;37m³ ³[41;31mÛ[40;37m³ ³[41m [40m³ ÀÄÙÚÙ[41;31m [40;37m³ ÀÄÙ ³[41m [40m³ À¿ÀÄÙ[0;41m [0m
|
||||||
[41;31m°[40;37m³ ³À¿[31mú[37m³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m°[40;37m³ ÚÄ¿Ô¸[41;31m°[40;37mÔÍÍÍÍ͸ ³[41;31m°[40;37m³ ÚÙÚÄ¿
|
[1;41;31m°[40;37m³ ³À¿[31mú[37m³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m±[40;37m³ ³[41;31m²[40;37m³ ³[41;31m°[40;37m³ ÚÄ¿Ô¸[41;31m°[40;37mÔÍÍÍÍ͸ ³[41;31m°[40;37m³ ÚÙÚÄ¿[41;31m°[0m
|
||||||
[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m±[40;37mÚÄÄÄÄÄÙ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³
|
[1;41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m²[40;37m³ ÀÄÙ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m±[40;37mÚÄÄÄÄÄÙ ³[41;31m±[40;37m³ ³[41;31m°[40;37m³ ³[41;31m±[0m
|
||||||
[0;31mÍ[1;37m³[30mù[37m Ô;[30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[0m[5C[1mÚÙ[31mÍ[37m³[30mù[37m Ô;[30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[37m Ô;[30mù[37m³
|
[31mÍ[1;37m³[30mù[37m Ô;[30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[0m[5C[1mÚÙ[31mÍ[37m³[30mù[37m Ô;[30mù[37m³[31mÍ[37m³[30mù[0m[5C[1;30mù[37m³[31mÍ[37m³[30mù[37m Ô;[30mù[37m³[0;31mÍ
|
||||||
[0m [1mÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ;
|
[37m [1mÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ; ÔÍÍÍÍÍÍ;
|
||||||
[41m Thanks for calling. Please come back again...
|
[41m Thanks for calling. Please come back again... [0m
|
||||||
|
@ -16,7 +16,7 @@ class CreateFramemeta extends Migration
|
|||||||
$this->down();
|
$this->down();
|
||||||
|
|
||||||
Schema::create('framemeta', function (Blueprint $table) {
|
Schema::create('framemeta', function (Blueprint $table) {
|
||||||
$table->integer('frame_id')->index();
|
$table->integer('frame_id')->index()->unique();
|
||||||
$table->string('r0')->default('*');
|
$table->string('r0')->default('*');
|
||||||
$table->string('r1')->default('*');
|
$table->string('r1')->default('*');
|
||||||
$table->string('r2')->default('*');
|
$table->string('r2')->default('*');
|
||||||
@ -27,7 +27,6 @@ class CreateFramemeta extends Migration
|
|||||||
$table->string('r7')->default('*');
|
$table->string('r7')->default('*');
|
||||||
$table->string('r8')->default('*');
|
$table->string('r8')->default('*');
|
||||||
$table->string('r9')->default('*');
|
$table->string('r9')->default('*');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('framemeta', function (Blueprint $table) {
|
Schema::table('framemeta', function (Blueprint $table) {
|
||||||
|
Reference in New Issue
Block a user