Comments (1)
Replacing utf8().get_data() with alloc_c_string() resolves the issue:
diff --git a/addons/godot_xterm/native/src/terminal.cpp b/addons/godot_xterm/native/src/terminal.cpp
index 4036e2a..01941a2 100644
--- a/addons/godot_xterm/native/src/terminal.cpp
+++ b/addons/godot_xterm/native/src/terminal.cpp
@@ -619,9 +619,8 @@ void Terminal::write(Variant data)
case Variant::Type::STRING:
{
String string = data;
- CharString utf8 = string.utf8();
- u8 = utf8.get_data();
- len = utf8.length();
+ u8 = string.alloc_c_string();
+ len = strlen(u8);
break;
}
default:
Similar issue: godotengine/godot#37543 (comment)
from godot-xterm.
Related Issues (20)
- Make better use of space for wide characters
- Terminal lose focus in scenes with other input nodes HOT 3
- PTY output not shown without GUI activity HOT 6
- "Unicode error: no space left" cause strange behaviors HOT 4
- Incorrect intial PTY size when used with Terminal
- Characters disappear after resizing window when using a custom theme
- Characters disappear when changing theme
- Godot 4 HOT 3
- [Godot 4] Make `update_mode` property an enum drop-down in editor inspector HOT 1
- [Godot 4] Fix terminal editor tabs
- [Godot 4] Menu scene title not displayed correctly HOT 1
- [Godot 4] Use EditorSettings to configure editor terminal
- [Godot 4] Fix editor terminal shortcuts
- [Godot 4] Fix tests HOT 1
- [Godot 4] Fix CI/CD HOT 2
- [Godot 4] Highlight editor terminal border on focus HOT 1
- vim plugin
- Use as code editor - replace Script
- Godot 4 functionality. HOT 4
- Please expose current cursor position and current character attributes HOT 5
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 godot-xterm.