Comments (4)
HI,
Thanks for reporting this issue !
Could you please show how to reproduce your problem? What do you get?
I expect the gnome terminal to send UT8 encoded characters. Then inside ftxui, everything is utf16. That's why there are conversion when entering and leaving ftxui.
from ftxui.
#include
#include
#include
#include
using namespace std;
wstring to_wstring1(const string& s)
{
wstring_convert<codecvt_utf8_utf16<wchar_t>> converter;
return converter.from_bytes (s);
}
wstring to_wstring2(const string& s)
{
wstring_convert<codecvt_utf8<wchar_t>> converter;
return converter.from_bytes (s);
}
int main()
{
string myString = "String";
wstring wideconversion1 = to_wstring1 (myString);
wstring wideconversion2 = to_wstring2 (myString);
wcout << wideconversion1 << " " << wideconversion2 << std::endl;
return 0;
}
This code will help in reproducing the issue on GNOME Terminal.
from ftxui.
Sorry I would like to help, but I don't understand. Could you please describe your issue?
from ftxui.
The problem is with using older version of gcc . I was using gcc 6.3. Which might not have implemented the codecvt correctly.
Thanks
from ftxui.
Related Issues (20)
- Screen.ExitLoopClosure() | Not exiting the program. HOT 1
- how to set on_change callback of dropdown HOT 1
- how to get a frameless dropdown? HOT 1
- how to get a mdal dialog window (Stacked)? HOT 2
- the decoration of stacked window not work correctly HOT 1
- Mouse input does not work correctly on urxvt: Moving the cursor always claims the mouse button is clicked. HOT 4
- Cursor state (blinking, block, underline, ...) is not reset after exiting a program HOT 2
- No definition for `Component Checkbox(CheckboxOption options)` method HOT 4
- Combine canvas and other elements HOT 6
- Checkbox does not `TakeFocus()` when clicked HOT 3
- ftxui_set_options.cmake: unable to compile on windows. HOT 2
- ButtonBase::OnClick ordering HOT 1
- Should Table::SelectRectangle() wrap in the way it does? HOT 1
- input.cpp field length. HOT 2
- Console doesn't clear previous renderer text after new renderer HOT 3
- Canvas background
- Introductory example fails to build HOT 2
- Custom event question HOT 2
- Add example to use system ftxui HOT 3
- "Bug or feature" HOT 3
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 ftxui.