Comments (4)
Please provide a small code example, that shows what you want to happen, and then ...what does happen.
for example;
var w = new Window(20, 5);
(var left, var right) = w.SplitLeftRight("left", "right");
left.WriteLine("one\r\ntwo\rthree\nfour");
/*
I am expecting to see the words get wrapped, and the last word "four" to also cause a carriage return
┌─ left ─┬─ right ─┐
│three │ │
│four │ │
│ │ │
└────────┴─────────┘
but instead I see the following; it appears as if there there are 2 carriage returns instead
of one after the last line.
┌─ left ─┬─ right ─┐
│four │ │
│ │ │
│ │ │
└────────┴─────────┘
*/
This will help explain exactly what you mean, and what behaviour you are expecting from Konsole.
Thank you
Alan
p.s. the test above is fictitious (made up) - to demonstrate how to ask for help using an example to clarify what you are expecting.
from konsole.
This is the Code:
var test = Window.OpenBox("Test Chinese", 20, 12, new BoxStyle()
{
ThickNess = LineThickNess.Single
});
test.WriteLine("这是一个中文句子测试,是否可以自动换行不越界");
/*
I am expecting to see the words get wrapped
┌── Test Chinese ──┐
│这是一个中文句子
│测试,是否可以自 │
│ 动换行不越界 │
│ │
└─────── ─────┘
but instead I see the following
┌── Test Chinese ──┐
│这是一个中文句子测试,是否可以自动换
│行不越界 │
│ │
│ │
└─────── ─────┘
Thank you for any help.
from konsole.
Thank you, ... I'll take a look at this tomorrow.
from konsole.
Hi @winplusx
I get similar results, so possibly the answer is no.
I dont have an chinese operating system to test on, in case that impacts the Operating system console in some way or other.
It's possible there might be work arounds, but the few experiments I've done in the past to support additional character sets (fonts) have involved configuring the windows command console itself to use a specific font.
Which means that even if there were some tricks, they would not help you create a C# application you can give to someone else, without requiring them to jump through the same tricks/hoops.
We also cannot force the console to use a specific font programmatically, not easily and not worth the hassle.
So ... this is a no from me unfortunately.
Alan
from konsole.
Related Issues (20)
- Prevent console window resize HOT 16
- ProgressBar does not expose current HOT 8
- IWrite allow StringBuilder type of parameter HOT 9
- SplitRows and SplitColumns without border HOT 1
- Embedded CrLf cause window isolation to break.
- HighSpeed writer to support resize on window size change
- Fix spelling, Boxstyle.Thickness to Thickness.
- Menu not explained in the README. HOT 2
- when splitRows with 3 splits, with even number of parent rows, the last split is not expanding by 1 row
- Konsole.Writer.MoveBufferArea throws System.PlatformNotSupportedException on Nix Platforms HOT 4
- ProgressBar not working on Linux HOT 2
- Trying to use Konsole for First Time HOT 3
- Ability to close boxes. HOT 9
- Support non "lined" borders (line numbers, blue statusbar, and text header) HOT 1
- Seemingly impossible divide by zero exception thrown HOT 4
- System.ArgumentOutOfRangeException in ProgressBar.Refresh() HOT 16
- How to prevent console from being moved by user? Snap windows feature is changing size of Console. HOT 1
- The simple initialization of ProgressBar is throwing "The handle is invalid." exception in VSCode while debugging. HOT 7
- Add image support HOT 4
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 konsole.