1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-27 17:29:39 +02:00

fix(terminal): display os specific copy/paste tooltip EE-1976 (#10835)

This commit is contained in:
Dakota Walsh 2024-01-24 09:45:40 +13:00 committed by GitHub
parent fc7d9ca2cd
commit fe47318e26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 81 additions and 18 deletions

View file

@ -183,8 +183,11 @@ angular.module('portainer.docker').controller('ContainerConsoleController', [
socket.onopen = function () {
$scope.state = states.connected;
term = new Terminal();
socket.send('export LANG=C.UTF-8\n');
socket.send('export LC_ALL=C.UTF-8\n');
socket.send('clear\n');
term.on('data', function (data) {
term.onData(function (data) {
socket.send(data);
});
var terminal_container = document.getElementById('terminal-container');