Comments (7)
This is strange indeed and I don't see this locally.
Is this under Linux? What is the OS and compiler used?
from vk_raytrace.
Windows 10.
I try vs 2019 and mingw.
Output is same
from vk_raytrace.
seems console properties determines wrong about support ANSI escape codes for colored output
from vk_raytrace.
Hi @tigrazone ! Yes, these are ANSI escape codes; it turns out cmd.exe
doesn't format these by default! (Windows Terminal and Visual Studio's Debugger Command Prompt do.) It sounds like you may have figured this out: if you create a registry key in Computer\HKEY_CURRENT_USER\Console
with name VirtualTerminalLevel
, type DWORD
, and value 1
, it should enable ANSI color codes in cmd.exe.
Here's the content of a .reg file for it:
[HKEY_CURRENT_USER\Console]
"VirtualTerminalLevel"=dword:00000001
It looks like we can also improve this on the nvpro_core side by enabling ENABLE_VIRTUAL_TERMINAL_PROCESSING
using SetConsoleMode()
; I'm going to look more into this.
Thanks!
from vk_raytrace.
why If on users computer there is no described record in registry is showed ←[0m like in my issue record?
Is it real to determine if ANSI escape codes is off and dont show text with escapes?
Looks like issue in determine routine
from vk_raytrace.
That would relate to the ENABLE_VIRTUAL_TERMINAL_PROCESSING
approach; I'm currently looking into that.
from vk_raytrace.
I tested fix:
add after https://github.com/nvpro-samples/nvpro_core/blob/500dea27f7043bfca3e82b5e246fe5f8c946cc54/nvh/nvprint.cpp#L242
#ifdef _WIN32
HANDLE handleOut = GetStdHandle(((1 << level) & LOGBITS_ERRORS) ? STD_ERROR_HANDLE : STD_OUTPUT_HANDLE);
DWORD consoleMode;
GetConsoleMode( handleOut , &consoleMode);
consoleMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
consoleMode |= DISABLE_NEWLINE_AUTO_RETURN;
SetConsoleMode( handleOut , consoleMode );
#endif
from vk_raytrace.
Related Issues (20)
- bugs in pathtrace.glsl HOT 3
- how rayquery variant works? HOT 1
- Unused functions in shaders/punctual.glsl HOT 1
- error compiling rgen shader: HOT 2
- is eStore image are float or int format HOT 2
- black edges occur when zoom in HOT 3
- https://github.com/Taehan-Kim/AppSlate.git HOT 1
- Error Compiling the Shaders HOT 7
- is VK_KHR_DEFERRED_HOST_OPERATIONS_EXTENSION_NAME needed?
- How to build from source on MSYS2 MINGW64? HOT 4
- Cant link with nvml.lib(nvml.dll) with VS2022 HOT 2
- [Question] how "Remove banding" code works? HOT 10
- Which sun&sky model is used? HOT 1
- Change settings panel HOT 1
- cfgmgr32.h is a windows-specific header file preventing compilation in Linux HOT 2
- #include <thread> -- header is missing HOT 1
- CMakeLists.txt Target Link Libraries Incomplete HOT 1
- Supportted GPU HOT 3
- Incorrect clone command in README.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vk_raytrace.