Saturday, May 8, 2021

Unicode @ Bellard TCC as console app finally



TCC @ Windows 10 tips:

#include <fcntl.h>
#include <io.h>
#include <stdio.h>

int main(void) {
    wchar_t str[80];
    int i;
    setmode(_fileno(stdout), _O_U16TEXT);
    setmode(_fileno(stdin), _O_U16TEXT);
    wprintf(L"\x043a\x043e\x0448\x043a\x0430 \nđšđšđ77ђшђшђшђшђ");
    wscanf(L"%ls", str);
    wscanf(L"%d", &i);
    wprintf(L"I am a %ls ,and I have %d year.\n", str, i);
    return 0;
}

//I am very happy about TCC unicode, are you too ?
//Using of: tcc-0.9.27-win64-bin.zip installation


//Lean Mean Coding Machine



I have already managed to set up to use TCC to read from a SQLITE table and write to a text file, but this is much more effective, isn't it ?
You can now use SQLITE in addition to entering and printing text.


And you can try this too:

const wchar_t * wstring = L"some wide string";
wprintf( L"%s\n", wstring );

wchar_t wideChar = 0x1234;
wprintf( L"hex: %04X  char: %c\n", wideChar, wideChar );

Secure your Network with OpenDNS:




Linux tips:


Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Atom and Google Chrome.

We do this by providing a friendly CLI workflow for the administration of macOS applications distributed as binaries.

$ brew install alfred
==> Downloading https://cachefly.alfredapp.com/Alfred_4.2.1_1187.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'alfred'.
==> Installing Cask alfred
==> Moving App 'Alfred 4.app' to '/Applications/Alfred 4.app'.
🍺  alfred was successfully installed!
And there we have it. An application installed with one quick command: no clicking, no dragging, no dropping.


$

ls -latr

  1. l - long list  
  2. a - include hidden files 
  3. r - reverse order 
  4. t - sort by time 

  5. $
  6. lspci -k

  7. ++



No comments:

Post a Comment

Коментар: