⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cc

📁 initial working phase of the design of said editor, featuring multicasting, advanced linux keyboard
💻 CC
字号:
#include "program.h"#include <stdio.h>			// printf()//#include <allegro.h>// vector-scheduled threads should be able to modify registers, globally.// ------ --------- --------- --------- --------- --------- --------- ---------program::~program(){//   unlock( ( void* )this, sizeof( program ) );}extern void draw();program::program(){   exit = -1;//   loop = FALSE;//   step = FALSE;//   lock( ( void* )this, sizeof( program ) );//   surface = new term;}// ------ --------- --------- --------- --------- --------- --------- ---------//#include <stdio.h>//#include <conio.h>/*void program::time( void* state ){//   surface -> write( '%', 0, 0 );   if( surface -> timing )      surface -> pipe( '%' );   delete ( word* )state;}*/#include "thread.h" // spawnchar letter = 'A';void program::key( void* state ){   byte k = *( byte* )state;//   printf( "x" );//   fflush( stdout );   que -> stamp = *( timeval* )( ( byte* )state + 1 );/*   if( !( k & 0x80 ) )   {      char lcase = "qwertyuiop    asdfghjkl     zxcvbnm"[ k - 0x10 ];      dword* _state = new dword[ 2 ];      _state[ 0 ] = 0; //cursor;      _state[ 1 ] = lcase; //q -> input;      spawn( &vector::mcast, _state );   }*/   *( kbd* )this = ( char )k; // overloaded   if( xmit ) que -> xmit();   xmit = false;//   printf( "x" ); // doesn't happen for a letter//   fflush( stdout );   delete[] ( byte* )state;}void term( int signal );void program::mcast( void* state ){//   printf( "y" );//   fflush( stdout );  que -> disperse();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -