RedHatGov / redhatgov.workshops

This is a collection of Ansible-deployed workshop environments. Use it in combination with the student workbook content, from the repo at https://github.com/RedHatGov/redhatgov.github.io
http://redhatgov.io
64 stars 69 forks source link

Web terminal appears to wrap after 80 characters #138

Open dpullman-emergent opened 3 years ago

dpullman-emergent commented 3 years ago

When trying out the new web terminal configured since PR#132, we are seeing wrapping after about 67 chars when pasting cli commands from the lab instructions. When adding the prompt, it looks like about 80 chars?

Not able to find a width setting, or anything else that seemed pertinent to the width of the terminal. Same result in Firefox and Chrome.

The wrapping is on the same line, so it's difficult to see what you have pasted. Worse is the case when you need to edit the line pasted with your github id.

dpullman-emergent commented 3 years ago

We're running 4.6.16

[ec2-user@ip-172-31-15-225` openshift4_aws]$ cat group_vars/all/all.yml
# Go to the following URL for a list of available OpenShift versions for installation
# https://mirror.openshift.com/pub/openshift-v4/clients/ocp/

# Valid values are 'local', and 'automation' # 'automation' is intended for automated builds/deploys
openshift_installer_type:               local

# get installation files playbook variables
openshift_version:                      4.6.16
openshift_installer_path:               "{{ ansible_env.PWD }}"
openshift_build_path:                   "{{ ansible_env.PWD }}/build"
openshift_odo_version:                  2.0.1
openshift_odo_path:                     /usr/local/bin/

# openshift workshop user variables
create_openshift_users:                 true
openshift_cluster_admin_username:       labadmin
openshift_cluster_admin_password:       ""
openshift_user_count:                   50            # user1 through user{{ openshift_user_count }}
openshift_user_password:                "openshift"

# install-config.yml variables
aws_region:                             us-east-1
openshift_cluster_name:                 openshift4
openshift_cluster_base_domain:          lab-emergent360.com
openshift_cluster_fqdn:                 "{{ openshift_cluster_name }}.{{ openshift_cluster_base_domain }}"
openshift_control_node_instance_type:   m5a.xlarge     # default = 4vCPUs / 16 GB RAM (i.e. m5a.xlarge)
openshift_control_node_replicas:        3              # use a value of '3' only
openshift_worker_node_instance_type:    m5a.2xlarge    # default = 8 vCPUs / 32 GB RAM (i.e. m5a.2xlarge)
openshift_worker_node_replicas:         3              # default = '3'  Node counts of =< 3 are valid
openshift_install_pull_secret:          " {{ lookup('file', '{{ openshift_installer_path }}/pull-secret') }}"
openshift_node_ssh_public_key:          "{{ lookup('file', '{{ openshift_build_path }}/{{ openshift_cluster_name }}-key.pub') }}"
openshift_installer_log_level:          debug          # recommended log level options: info or debug

# web terminal operator variables
deploy_web_terminal:                    True
openshift_webcli_idle_timeout:          24h

# service mesh operator variables
deploy_service_mesh:                    false
deploy_service_mesh_workshop:           false
elasticsearch_operator_version:         "{{ openshift_version | regex_replace('^(\\d+)(\\.\\d+).*','\\1\\2') }}"
jaegar_operator_version:                stable
kiali_operator_version:                 stable
servicemesh_operator_version:           stable
keycloak_operator_version:              "v10.0.0"

## Automation related variables
## These get assembled to store OCP state in a bucket with a prefix like this:
## s3://{{ s3_bucket }}/{{ s3_prefix }}/{{ workshop_type }}/{{ openshift_cluster_name }}/stateFilesHere
#s3_bucket:                              "myStateFilesBucket"
#s3_prefix:                              "mycustom/path/to/state/files"
#workshop_type:                          "ocp4"
dpullman-emergent commented 3 years ago

May be related to Include xterm-resize in tooling container (https://github.com/redhat-developer/web-terminal-tooling/pull/23)

ajacocks commented 3 years ago

We're seeing the same thing. This would be good to get fixed.