Terminaux 8.2 will include QR code renderer!
While implementing the two-factor authentication (2FA) feature on Nitrocid KS, we thought it would be wise to include a QR code setup so that people who are using their phones to authenticate to their Nitrocid user will be able to quickly add the authentication information for them to get the 6-digit code they need to enter to be able to log in. However, we were faced with an implementation challenge when it comes to actually printing the QR code. Do we print the QR code to the console? Or do we generate an image and open it using the image viewer found in a computer? The answer was the former.
We have chosen to print the QR code to the console, because we have several of the block characters that we can use to render a graphic, just like what we’re currently doing with the image renderer in Terminaux.Images. Using the QR code matrix map, why not use it to print it to the console, knowing that the size is not adjustable without data loss?
Terminaux 8.2 will include both the standard QR code renderer and the Micro QR code renderer using the simple renderer class. This simplification ensures that the QR code is printable to the console in both the CLI mode, which involves scrolling lines, and in TUI mode, which requires that the console window be larger than the QR code itself. Right now, the code sits in Nitrocid KS, with this commit adding the QR code renderer, which the 2FA feature uses.
While Terminaux 8.1 is yet to be released until tomorrow, we are looking forward to adding new interesting features to the library as we go on through the support cycle.
#news #Tech #Technology #terminaux #Terminaux80 #Terminaux82 #update



