Category : console

Node.js by default uses escape sequences to color various kinds of output, such as error messages. On my Windows 10 system, this is in some circumstances not working: C:t>type a.js console.log(x) C:t>node a.js C:ta.js:1 console.log(x) ^ ReferenceError: x is not defined at Object.<anonymous> (C:ta.js:1:13) [90m at Module._compile (internal/modules/cjs/loader.js:1063:30)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)[39m [90m at Module.load ..

Read more

My program has a function which is configuring a console window to show the screen buffer, using windows.h library: void constructConsole(int width, int height, int fontWidth, int fontHeight) { screenWidth = width; screenHeight = height; window = { 0, 0, 1, 1 }; SetConsoleWindowInfo(hConsole, TRUE, &window); SetConsoleScreenBufferSize(hConsole, { (SHORT)screenWidth, (SHORT)screenHeight }); SetConsoleActiveScreenBuffer(hConsole); cfi.cbSize = sizeof(cfi); ..

Read more

I have a Thumbnail_Handler class which has this method, which is supposed to run a file with Adobe Photoshop: def abrir_photoshop(self): target = self.path_copia norm_path = os.path.normpath(r"C:Program FilesAdobeAdobe Photoshop 2021Photoshop.exe") cmd = ‘"’ + norm_path + ‘" "’ + target + ‘"’ print(cmd) proc = os.system(cmd) for filename in os.listdir(PATH_THUMBNAIL + self.nome_playlist): if re.match(self.id_video_original + ..

Read more